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
What is uint8 in c?
what is the format specifier for printing a pointer value?
how to find binary of number?
Can include files be nested?
How many levels of pointers can you have?
What are integer variable, floating-point variable and character variable?
What are the salient features of c languages?
Explain two-dimensional array.
How do I send escape sequences to control a terminal or other device?
What are the advantages and disadvantages of a heap?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What are header files and explain what are its uses in c programming?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What are data structures in c and how to use them?
How do you print an address?