Revisions: 08/24/01; 11/25/04, 08/20/06 -- format changes
The previous chapter introduced the FOR
statement.
The FOR
statement is an easy way to implement counting loops.
A counting loop uses a counter which begins at a starting
value and counts its way to a final value.
This chapter will discuss a few further details of the FOR
statement and present some additional examples.
STEP
to count up or down by different amountsFOR
loop will finishIF-THEN-ELSE
inside a FOR
loopAre there any types of loops other than counting loops?