Sanyo MBC-550 Series User Manual page 115

Table of Contents

Advertisement

(4) If the counter initial value exceeds the final
value from the beginning, the loop is not executed and
control is passed to the statement following the NEXT,
If several NEXTs are provided for one FOR, control is
passed to the statement following the NEXT having the
smallest line number.
(5) FOR/NEXT loop can be nested.
Other variable must
be defined as a counter in each loop if nested.
(6) If nested loops have common terminal, variables can
be written in one NEXT. The counter variable of inner
loop must be placed inside.
(7) If NEXT variable is omitted, the variable in the
immediately before FOR is assumed. The variables in the
NEXT which is used as common terminal can not be omit­
ted .
(8) Neither array nor double-precision real number
cannot be used as <variable>(loop control variable).
Examples
1)
>10 FOR I = 1 TO 10
>20 INPUT A
>30 NEXT I
3-48

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents