First page Back Continue Last page Graphics
Chapter 05 : Loops
The for loop
for ( initialization;
test – expression;
update – expression )
{ loop body } ;
Initializes control using the initialization.
Tests the test – expression once each time at the BEGINNING of the loop body.
If to continue, updates the control with the update – expression and returns to the top of the loop body.