Statement 2 is the only statement in the body of the loop. (There can be as many as you need.)
It would be OK to say that statement 3 is also in the loop body,
but really it is a "bracket" that shows where the loop body ends
(like the LOOP
statement in a
DO WHILE
loop.)
' Counting Loop---using a FOR ' FOR COUNT = 0 TO 2 'Statement 1 PRINT COUNT 'Statement 2 NEXT COUNT 'Statement 3 END
As always, use indenting to show the statements that are
contained between two brackets.
The NEXT COUNT
COUNT
changes from its current value to the next value.
This change is done automatically.
You should not put in a statement to do it.
What is the next value in this loop after 0?