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.
|
- rem SelCase.bas -- test SELECT CASE
-
- Sub Main
- Print "SelCase.bas -- test SELECT CASE statement"
- Input "Enter a number"; d
-
- Select Case d
-
- Case 3 to 5
- Print "The number is between 3 and 5."
-
- Case 6
- Print "The number you entered is 6."
-
- Case 7 to 9
- Print "The number is between 7 and 9."
-
- Case If > 10
- Print "The number is greater than 10"
-
- Case If < 0
- Print "The number is less than 0"
-
- Case Else
- Print "The number is 1, 2 or 10."
-
- End Select
-
- End Sub
-
|