Question: Chapter 5 Selection Statement ASSIGNMENT3 2. Write a program that asks the user for a two-digit number, then prints the English word for the number:
Chapter 5 Selection Statement ASSIGNMENT3
2. Write a program that asks the user for a two-digit number, then prints the English word for the number:
Enter a two-digit number: 45
You entered the number forty-five.
Hint: Break the number into two digits. Use one switch statement to print the word for the First digit (twenty thirty" and so forth). Use a second switch statement to print the word for the second digit. Dont forget that the numbers between 11 and 19 require special treatment.
2. Write your program here:
#include
int main(){
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
