232 would print 99Hi there 87Hi there 75Hi there 63Hi there The FOR...NEXT loop always executes once so FOR D=5 TO 3: PRINT D: NEXT D would print 5 and then stop. Examples 1040 FOR A%=0 TO MAXIMUM% 300 FOR X=1 TO 16 STEP 0.3: PRINT X: NEXT X 560 FOR TEMPERATURE=0 TO 9 A statement initialising a FOR...NEXT loop. This structure always executes at least once. Any assignable numeric item may be used as the control variable but integer control variables are about three times faster than real variables. Note that when the step is non-integer, rounding errors may creep in and the value of the control variable may well diverge significantly from the true arithmetic value.
Description Syntax FOR = TO [ STEP ] Associated keywords TO , STEP , NEXT