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

SelectCase x

Case0
MsgBox"zero"

Case1
MsgBox"one"

Case2
MsgBox"two"

Case3
MsgBox"three"

Case4
MsgBox"four"

Case5
MsgBox"five"

Case6
MsgBox"six"

Case7
MsgBox"seven"

Case8
MsgBox"eight"

Case9
MsgBox"nine"

Case10
MsgBox"ten"

CaseElse
MsgBox"less than zero or greater than ten"

Endselect

No comments:

Post a Comment