Tuesday 13 August 2013

Switch

Switch Month
Case condition 1
Display "The number is 1"

Case condition 2
Display "The number is 2"

Case condition 3
Display "The number is 3"

Case condition 4
Display "The number is 4"

Case condition 5
Display "The number is 5"

Case condition 6
Display "The number is 6"

Case condition 7
Display "The number is 7"

Case condition 8
Display "The number is 8"

Case condition 9
Display "The number is 9"

Case condition 10
Display "The number is 10"

Case condition 11
Display "The number is 11"

Case condition 12
Display "The number is 12"

Case Else
Prompt user to re-enter value

End Select

No comments:

Post a Comment