Program termination: Difference between revisions
add Tiny BASIC
(→{{header|Wren}}: Added a third option to the preamble.) |
(add Tiny BASIC) |
||
Line 1,501:
...
EndPrgm</lang>
=={{header|Tiny BASIC}}==
You can either halt the program directly within the conditional...
<lang tinybasic> LET I = 0
10 IF I = 10 THEN END
LET I = I + 1
PRINT I
GOTO 10</lang>
...or allow it to fall through to the end of the program.
<lang tinybasic> LET I = 0
10 LET I = I + 1
PRINT I
IF I < 10 THEN GOTO 10</lang>
=={{header|TUSCRIPT}}==
|