13
Nested Loops.
Putting a loop inside of another is called 'nesting'. In this example the inner loop draws a row of circles (x increases). The outer loop increments y creating new rows.
The variables 'width' and 'height' are created automatically by size().
13.1 for (int i = 12; i <= 34; i++); i will count from ___ to ___ by ___.
13.2 for(int i = 0; i < 10; i++); will count from ____ to ____ by ____.
13.3 for(int i = 2; i <= 20; i+=2) will count from ____ to ____ by ____.
CHALLENGE 13
Write a sketch similar to this example that uses small diamonds instead of circles.