CHAPTER 41---The Fantastic For Statement
The for statement is
a convenient way to program counting loops,
although
it can be used to build all of the three types of loops.
Anything it does could also be done with the fundamental control
statements you already know.
But the for statement often says just what you want in a
compact, easily understood format.
Chapter Topics:
- The three parts of all loops (review).
- Syntax of the for statement.
- Using the for statement in counting loops.
- Equivalence of for and while loops.
|