ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
326 B

  1. 10 print "ONGOSUB.BAS -- Test ON..GOSUB Statement"
  2. 20 input "Enter a number 1-5";n
  3. 30 on n gosub 60, 80, 100, 120, 140
  4. 40 print "The End"
  5. 50 end
  6. 60 print "You entered 1"
  7. 70 return
  8. 80 print "You entered 2"
  9. 90 return
  10. 100 print "You entered 3"
  11. 110 return
  12. 120 print "You entered 4"
  13. 130 return
  14. 140 print "You entered 5"
  15. 150 return