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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!