PROGRAMMING METHODS
The for
for(int
i = 0; i < 6; i++)
{
// insert code here
}
What’s going on here?
Assignment and
Declaration
int i = 0; Initializing a variable named
“i” to 0.
The Condition
i < 6; ->The
loop will continue until this condition IS NOT TRUE.
The Increment
i++; -> (i = i + 1) The amount i changes after each loop (iteration.)