What do you think that STEP -1
means?
It means that COUNTER
changes by -1 each time.
Most of the time,
you want to count upwards "by ones."
In this case,
use the FOR
statement without STEP
,
as in the previous chapter.
If you want the counter to change by some amount other than 1,
use STEP
.
Here is another program:
FOR COUNTER = 0 TO 10 STEP 2 PRINT "Counter:", COUNTER NEXT COUNTER ' END
What do you suppose this program prints out?