write a c program to accept a given integer value and print
its value in words
Answer Posted / sheikh rasel
#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 ? | 17 Yes | 39 No |
Post New Answer View All Answers
What is the meaning of ?
what is the difference between class and unio?
What is the description for syntax errors?
What is the method to save data in stack data structure type?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is structure padding and packing in c?
Explain the properties of union.
Explain what are the __date__ and __time__ preprocessor commands?
What are the back slash character constants or escape sequence charactersavailable in c?
What is the code for 3 questions and answer check in VisualBasic.Net?
What the advantages of using Unions?
what is ur strangth & weekness
What is the condition that is applied with ?: Operator?
Subtract Two Number Without Using Subtraction Operator
What is a pointer in c plus plus?