Learn to Program with ZedLX

Free Online Programming Course for Beginners

Introduction [2/10]

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

The source code of the program has two statements, each on a separate line.

The editor automatically colors the source code, to make it easier to read. This feature is called “syntax highlighting”.

The println (P-R-I-N-T-L-N) statement displays text on the screen. println is short for “print line”.

The disc function draws a disc. Its position, size, and color are specified by values inside the parentheses (also known as round brackets).

Exercise:

Add the following statement to the program: disc( 600,150, 100 , /red );

Loading...