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