Search here for all the info you want in this Blog

write a program to accept input as numbers from 1 to 10 and display them in words by using select case

'8) write a program to accept input as numbers from 1 to 10 and display them in words by using select case

x = 23

Select Case x

Case 0
MsgBox "zero"

Case 1
MsgBox "one"

Case 2
MsgBox "two"

Case 3
MsgBox "three"

Case 4
MsgBox "four"

Case 5
MsgBox "five"

Case 6
MsgBox "six"

Case 7
MsgBox "seven"

Case 8
MsgBox "eight"

Case 9
MsgBox "nine"

Case 10
MsgBox "ten"

Case Else
MsgBox "less than zero or greater than ten"

End select

No comments:

Post a Comment