created: 04/17/98; revised: 01/03/99, 10/28/99, 01/22/00, 07/20/02, 05/25/03, 01/19/06, 08/30/07
for statement is
a convenient way to program counting loops,
it can be used to build all three types of loops.
Anything it does could also be done with the fundamental control
statements you already know.
for statement often says just what you want in a
compact, easily understood format.
forstatement in counting loops
What are the three types of loops?