User`s manual
4-11
10 FOR K=0 TO 1 STEP.3
20 PRINT K;
30 NEXT
RUN
0.3.6.9
READY
>_
After K=.9 is incremented by .3, K=1.2. This is greater than the final value 1,
therefore loop ends without ever printing final value.
--------------------------------------
10 FORK = 4 TO 0
20 PRINT K;
30 NEXT
RUN
4
READY
>_
No STEP is specified, so STEP 1 is assumed After K is incremented the first
time, its value is 5. Since 5 is greater than the final value 0, the loop ends.
--------------------------------------
10 J=3 K=8 : L=2
20 FOR 1=J TO K+1 STEP L
25 J=0 : K=0 : L=0
30 PRINT I;
40 NEXT
RUN
3 5 7 9
READY
>_
The variables and expressions in line 20 are evaluated once and these values
become constants for the FOR-NEXT-STEP loop. Changing the variable
values later has no effect on the loop.
--------------------------------------










