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.
 
 
 
 
 
 

22 lines
569 B

  1. 100 rem SelCase.bas -- test SELECT CASE
  2. 110 SHELL "cls"
  3. 210 Print "SelCase.bas -- test SELECT CASE statement"
  4. 220 Input "Enter a number (0 to quit) "; d
  5. 225 If (d = 0) then end
  6. 230 Select Case d
  7. 240 Case 3 to 5
  8. 250 Print "The number is between 3 and 5."
  9. 260 Case 6
  10. 270 Print "The number you entered is 6."
  11. 280 Case 7 to 9
  12. 290 Print "The number is between 7 and 9."
  13. 300 Case If > 10
  14. 310 Print "The number is greater than 10"
  15. 320 Case If < 0
  16. 330 Print "The number is less than 0"
  17. 340 Case Else
  18. 350 Print "The number is 1, 2 or 10."
  19. 360 End Select
  20. 365 Print
  21. 370 Goto 220