FOR NEXT
Processing of repetition.

How should it be done same processing with variable changes continuously?
In program, to use 'FOR NEXT' statement.

10 for i=1 to 10
20 a=a+i
30 next
40 print "Total from 1 to 10 is ";a

run
Total from 1 to 10 is 55
OK


[for i=1 to 10]: It is command to repeat at 'NEXT' with variable 'i' changing from 1 to 10.
Variable 'i' is added repeatedly in line 30.
If the value exceeds 10, exit the loop, and move to the next line of 'NEXT'.
'PRINT' statement can be displayed plurality of values by separatting of semicolon ';'.