Question: 3.Write a program called PrintNumberInWord which prints ONE, TWO,... , NINE, OTHER if the int variable number is 1, 2,... , 9, or other, respectively
3.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 "nested-if...else" statement).
Write another program to solve Exercise 3 by using a switch...case statement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
