Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

c language interview questions & answer

1965


What does main () mean in c?

1102


What is a program?

1272


What are the characteristics of arrays in c?

1054


What should malloc(0) do?

1128


Explain how do you generate random numbers in c?

1090


What does char * * argv mean in c?

1070


write a program in c language to print your bio-data on the screen by using functions.

6789


What is the process to generate random numbers in c programming language?

1180


Why is %d used in c?

1007


What are the different types of endless loops?

1082


What are the salient features of c languages?

1101


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.?

1079


If fflush wont work, what can I use to flush input?

1106


Why isnt there a numbered, multi-level break statement to break out

1057