RosettaCodeData/Task/Jump-anywhere/BASIC256/jump-anywhere.basic
2023-07-01 13:44:08 -04:00

22 lines
280 B
Text

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