Exercise PrintNumberInWord (nested-if, switch-case)

Compiled By Unknown - No Comments
Exercise PrintNumberInWord (nested-if, switch-case): Write a program called PrintNumberInWord which prints "ONE", "TWO",... , "NINE", "OTHER" if the int variable "number" is 1, 2,... , 9, or other, respectively. Use (a) a "nested-if" statement; (b) a "switch-case" statement.

Hints: For hints visit Hint on Exercise PrintNumberInWord (nested-if, switch-case)

For solution to Exercise PrintNumberInWord Visit Solution For Exercise PrintNumberInWord


Try to Write
Write a program called PrintDayInWord, which prints “Sunday”, “Monday”, ... “Saturday” if the int variable "day" is 0, 1, ..., 6, respectively. Otherwise, it shall print “Not a valid day”.

Tags:

No Comment to " Exercise PrintNumberInWord (nested-if, switch-case) "