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
How are variables declared in c?
what are the 10 different models of writing an addition program in C language?
Explain threaded binary trees?
Which programming language is best for getting job 2020?
Why double pointer is used in c?
What is else if ladder?
What is array within structure?
what is the significance of static storage class specifier?
Can the curly brackets { } be used to enclose a single line of code?
What does c in a circle mean?
Is fortran faster than c?
How do you declare a variable that will hold string values?
How do you define CONSTANT in C?
Which type of language is c?
all c language question