I read over the tutorials that were posted, but i'm having a little problem....
In my program i'm prompting the user to enter a two digit number...so pretty much 10-99...and we are "assuming" they are going to enter that two digit number.
Code:
int num;
printf("Enter a Two-Digit Number: \n");
scanf("%d", &num);
printf("The number Entered is: \n", num);
switch (num) {
case 10: printf("ten"); break;
case 20: printf("twenty"); break;
case 30: printf("thirty"); break;
case 40: printf("fourty"); break;
case 50: printf("fifty"); break;
How would i set the program up to where if i enter 21 it prints twenty one.....
i know it will grab twenty from the "case 20:" and i know i have to create a switch, case for single integers such as case 1: printf("one"); break;