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
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What will the preprocessor do for a program?
Is it acceptable to declare/define a variable in a c header?
What is a stream?
What do mean by network ?
What is the most efficient way to count the number of bits which are set in an integer?
The __________ attribute is used to announce variables based on definitions of columns in a table?
What are the key features in c programming language?
What is enumerated data type in c?
explain what is a newline escape sequence?
Which is better oop or procedural?
Can we declare variable anywhere in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
how to make a scientific calculater ?
How many bytes is a struct in c?