OBSERVATIONS - Example 1
Starting from the center of the screen, I drew 15 circles, with the radius increasing by 5 pixels at each step,
rotating by 20 degrees each time. It kind of reminds us of the shells we collect from the seashore, doesn't it?
OBSERVATIONS - Example 2
I used an additional while loop, with a new control variable named m, to display all regular polygons on the screen, with the number of sides ranging from 3 (a triangle) to n.
This time, for each polygon, the necessary angle is recalculated based on the current number of sides, m.
In fact, what did I do? I "borrowed" the code from the previous page and adapted it slightly for the new program.
In this case, we say that we have two nested while loops.
Pay attention to indentation, otherwise... it's intuitive.
OBSERVATIONS - Example 3
I played a bit with a list of colors, a counter variable named i for it, and the rest... is already familiar!