Programming Tools Guide
Chapter 3, C language compiler

Iteration statements

Iteration statements



while



   while (expression)
        statement
This sequence is followed repetitively: expression must have scalar type. 

do-while



   do
        statement
   while (expression);
This sequence is followed repetitively: (do-while tests loop at the bottom; while tests loop at the top.) 

for



   for (expression1; expression2; expression3)
        statement