Learn to Program with ZedLX

Free Online Programming Course for Beginners

Introduction [2/10]

The source code of this program has two statements, one per line.
[Run the program]

The source code is automatically colored, making 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 given by values inside the parentheses (also known as round brackets).

Exercise:

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

Loading...