FOR Y = 5 TO 100 STEP 5 PRINT Y NEXT Y
20 values, 5 through and including 100.
Here is a program that writes 10,000 points to the screen:
SCREEN 12 FOR DOT = 1 to 10000 LET X = INT( 640*RND ) LET Y = INT( 480*RND ) PSET( X, Y) NEXT DOT ' END
There are some details in this program that will be discussed in a while. For now, study the loop in the program:
'start graphics screen 12 FOR DOT = 1 to 10000 ' Do something NEXT DOT ' END
The body of the loop is done 10,000 times. Now look at that body to see what is done so many times:
LET X = INT( 640*RND ) LET Y = INT( 480*RND ) PSET( X, Y)
How many dots are drawn for each execution of the loop body?