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.
 
 
 
 
 
 

15 lines
310 B

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