12

for loops

12.1 for(int i = a; i < b; i+=c) What happens to i? What is the purpose of a, b and c?

12.2 What is the purpose of the braces { } when you write a loop?

CHALLENGE 12

Change the code by adding one line inside the loop to draw the figure shown below.