Write a program in c to input a 5 digit number and print it
in words.
Answer Posted / siddiqui_1985
i dont have answer i'm actually asking question..
What if we want to print upto nth term??
in a very first post
"
#include<stdioi.h>
void main()
{
int n,count=0,a[20];
scanf("%d",&n);
for(i=0;n>0;i++)
{
a[i]=n%10;
n=n/10;
count++;
}
for(i=0;i<count;i++)
{
switch(a[i])
{
case 1:
printf("one");
break;
case 2:
printf("two");
break;
"
he explicitly doing this using switch case.
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
c language interview questions & answer
What does main () mean in c?
What is a program?
What are the characteristics of arrays in c?
What should malloc(0) do?
Explain how do you generate random numbers in c?
What does char * * argv mean in c?
write a program in c language to print your bio-data on the screen by using functions.
What is the process to generate random numbers in c programming language?
Why is %d used in c?
What are the different types of endless loops?
What are the salient features of c languages?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
If fflush wont work, what can I use to flush input?
Why isnt there a numbered, multi-level break statement to break out