select.bmx 401 B

123456789101112131415161718
  1. Rem
  2. Select begins a block featuring a sequence of multiple comparisons with a single value.
  3. End Rem
  4. a=Int( Input("Enter Your Country Code ") )
  5. Select a
  6. Case 1
  7. Print "You are from America"
  8. Case 44
  9. Print "You are from the United Kingdom"
  10. Case 62
  11. Print "You are from Australia"
  12. Case 64
  13. Print "You are from New Zealand"
  14. Default
  15. Print "I cannot tell which country you are from"
  16. End Select