実験課題1

Exercise 1(課題1) See the section 3.1.1. "What is Unstructured Code". Show the source code converted from C language program of Figure 1 to Java program and its execution result as a screenshot. Follow the instructions below to write the souce code.

  1. create the Java application project named chapter3kadai1.
  2. create main method and modify its method to the program equal to the C language program. in the project class.
  3. take the screenshot of the execution result.

(3.1.1.節をよく読み、chapter3kadai1プロジェクトを作成し、Cで書かれた図1のプログラムをJavaのプログラムとして作り直し、ソースコードを報告しなさい。また実行結果をスクリーンショットで示しなさい。)