Learn to Program with ZedLX

Free Online Programming Course for Beginners

Simple Graphics [1/15]


Simple Graphics

This program draws multiple white circles. The circles have a radius of 15.
[Run the program]

The circle procedure is used to draw circles. Its form is:
circle(x, y, radius)

There are two calls to the circle procedure in the loop's body.

Procedure calls can be easily recognized because they must use parentheses to enclose the arguments. Each procedure call is made in a separate statement.

Exercises:

  1. Change the radius to 25 in the first row of circles.
    [Run the program]

  2. Change the radius to 30 in the second row of circles.

  • Track your progress by clicking the “Overview” button at the top left menu.
  • Take regular breaks to stay focused and refreshed.

Loading...