RosettaCodeData/Task/Jump-anywhere/BASIC256/jump-anywhere.basic

23 lines
280 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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