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
Write a c program to build a heap method using Pointer to function and pointer to structure ?
How reliable are floating-point comparisons?
How to get string length of given string in c?
What is scanf_s in c?
What are the disadvantages of c language?
What is %d used for?
What are valid signatures for the Main function?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Why calloc is better than malloc?
What is ## preprocessor operator in c?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Why c language?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
How can I handle floating-point exceptions gracefully?
how to capitalise first letter of each word in a given string?