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
Is that possible to add pointers to each other?
What do you mean by command line argument?
What is call by reference in functions?
Write a program to print "hello world" without using a semicolon?
Explain 'far' and 'near' pointers in c.
What are valid signatures for the Main function?
Explain how can I write functions that take a variable number of arguments?
Can you define which header file to include at compile time?
Explain how do you print only part of a string?
What does main () mean in c?
Why malloc is faster than calloc?
What is the difference between constant pointer and constant variable?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is default value of global variable in c?
Write a program to swap two numbers without using third variable?