RosettaCodeData/Task/Loops-Break/BASIC/loops-break-5.basic
2019-09-12 10:33:56 -07:00

5 lines
111 B
Text

10 FOR l = 1 TO 20
20 IF l = 10 THEN LET l = 20: GO TO 40: REM terminate the loop
30 PRINT l
40 NEXT l
50 STOP