+ 1
Program
Using switch statement write a C program that accepts an integer value and outputs the number in words
4 Antworten
+ 1
if it's for a single digit it's simple or do you mean for any number?
+ 1
Single digit
+ 1
than it could look like this:
int digit = 1;
switch(digit) {
    case 0 :
        printf("zero\n");
        break;
    case 1 :
        printf("one\n");
        break;
and so on...
I hope you get the idea. Good luck.
+ 1
Thankyou



