case.bmx 398 B

1234567891011121314
  1. ' case.bmx
  2. ' Case performs a comparison with the preceeding value(s) and that
  3. ' listed in the enclosing Select statement:
  4. a=Int( Input("Enter a number between 1 and 5 ") )
  5. Select a
  6. Case 1 Print "You think small"
  7. Case 2 Print "You are even tempered"
  8. Case 3,4 Print "You are middle of the road"
  9. Case 5 Print "You think big"
  10. Default Print "You are unable to follow instructions"
  11. End Select