Jump anywhere: Difference between revisions
Jump anywhere en BASIC256
(Jump anywhere en QBasic) |
(Jump anywhere en BASIC256) |
||
Line 375:
[finish]
print "done"</lang>
=={{header|BASIC256}}==
BASIC256 supports both <code>goto</code> and <code>gosub</code>.
{{works with|QBasic}
{{works with|Yabasic}}
<lang freebasic>print "First line."
gosub sub1
print "Fifth line."
goto Ending
sub1:
print "Second line."
gosub sub2
print "Fourth line."
return
Ending:
print "We're just about done..."
goto Finished
sub2:
print "Third line."
return
Finished:
print "... with goto and gosub, thankfully."
end</lang>
{{out}}
<pre>Igual que la entrada de FutureBasic.</pre>
=={{header|C}}==
|