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


Please Help Members By Posting Answers For Below Questions

How are variables declared in c?

590


what are the 10 different models of writing an addition program in C language?

1430


Explain threaded binary trees?

670


Which programming language is best for getting job 2020?

602


Why double pointer is used in c?

559






What is else if ladder?

603


What is array within structure?

574


what is the significance of static storage class specifier?

1650


Can the curly brackets { } be used to enclose a single line of code?

707


What does c in a circle mean?

572


Is fortran faster than c?

572


How do you declare a variable that will hold string values?

659


How do you define CONSTANT in C?

644


Which type of language is c?

640


all c language question

1860