Question: write program which inputs a number from the user (i.e. 0-99). The program should print a number in words, e.g. Zero for 0, One for
write program which inputs a number from the user (i.e. 0-99). The program should print a number in words, e.g. "Zero" for 0, "One" for 1, "Two" for 2, and so on. If the user does not enter a number within specific range, then program should display an error: "Invalid number!".
Note: (HINT: use division and modulus operators to separate the two digits. Then, left digit translates to tenth count, and right digit translates to single digit)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
