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 null pointer in c?
What are identifiers c?
what is the role you expect in software industry?
What is the difference between struct and union in C?
How can you read a directory in a C program?
What are header files in c programming?
Give the rules for variable declaration?
What is the difference between if else and switchstatement
What are the 4 types of unions?
What is difference between function overloading and operator overloading?
What is the difference between exit() and _exit() function?
How are strings stored in c?
Describe explain how arrays can be passed to a user defined function
Write a program to check palindrome number in c programming?
What is a nested loop?