Flow-control structures: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: remove first and last blank lines from program examples. -- ~~~~) |
(Added BBC BASIC) |
||
Line 165: | Line 165: | ||
6 |
6 |
||
8</lang> |
8</lang> |
||
=={{header|BBC BASIC}}== |
|||
{{works with|BBC BASIC for Windows}} |
|||
BBC BASIC has '''GOSUB''' and '''GOTO''' but they are deprecated. |
|||
<lang bbcbasic> GOSUB subroutine |
|||
(loop) |
|||
PRINT "Infinite loop" |
|||
GOTO loop |
|||
END |
|||
(subroutine) |
|||
PRINT "In subroutine" |
|||
WAIT 100 |
|||
RETURN</lang> |
|||
=={{header|C}}== |
=={{header|C}}== |