First page Back Continue Last page Graphics
FOR LOOP
for( int i = 0; i < maxi; i++)
{
// statement(s) <--- FOR LOOP BODY
}
// Note type inside the loop control. i undefined outside the loop.
First expression handles the initialization of the loop control variable.
Second expression handles the test. If true, the loop continues.
Third expression changes the loop control variable for each pass through the loop.