Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Introduction [2/10]

To run the program, simply click the “Run” button.

The source code for this program consists of two statements, each on its own line.

Notice how the editor automatically colors the source code. This feature is known as “syntax highlighting”, and it helps you read code more easily.

The println (P-R-I-N-T-L-N) statement is used to display text on the screen (println is short for print line).

The disc function is used to draw a disc. The position and size of the disc are specified by arguments.

Exercise:

Let’s add a little more to the program. Try adding the following statement: disc( 600,150, 100 , /red );

Loading...