Learn to Program with ZedLX

Free Online Programming Course for Beginners

Computer Graphics Exercises [6/9]

[Run the program]

Exercise:

Exercise 5 output image

Make the program draw discs on both diagonals. Use only one for loop. Draw two discs in each iteration of the for loop, one disc on each side of the screen.

The solution is on the next slide.

Loading...