Next: Multiple Choice Questions
Up: The for statement
Previous: Example Program: Generation of
for
statement is is used to implement loops which execute a fixed
number of times. This number of times must be known before the
for
statement is entered.
for
statement is initially false
then the loop statement will not be executed. Thus a for
statement may iterate zero or more times.