write a c program to accept a given integer value and print
its value in words
Answer Posted / uday
#include<stdio.h>
int main()
{
int n;
clrscr();
printf("\nenter a integer number::");
scanf("%d",&n);
switch(n)
{
case:1
printf("\nOne");
break;
case:2
printf("\nTwo");
break;
case:3
printf("\nThree");
break;
case:4
printf("\nFour");
brak;
case:5
printf("\nFive");
break;
case:6
printf("\nSix");
break;
case:7
printf("\nSeven");
break;
case:8
printf("\nEight");
break;
case:9
printf("\nNine");
break;
default:
printf("\nSorry");
}
getch();
}
| Is This Answer Correct ? | 19 Yes | 41 No |
Post New Answer View All Answers
Is c programming hard?
Explain about C function prototype?
How do you construct an increment statement or decrement statement in C?
Can you write a programmer for FACTORIAL using recursion?
What is self-referential structure in c programming?
Explain is it better to bitshift a value than to multiply by 2?
What is pivot in c?
What is the difference between text and binary i/o?
Why array is used in c?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What are the 4 data types?
What are the usage of pointer in c?
Explain main function in c?
What is wrong with this program statement? void = 10;
Explain how do you determine whether to use a stream function or a low-level function?