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 / swathi

# include <stdio.h>
int main ()
{
int n;
char a[10][10] = {"zero", "one", "two", "three", "four",
"five", "six", "seven", "eight", "nine"};
printf ("Enter the number:\n");
scanf ("%d", &n);
printf ("The given num in word = %s\n", a[n]);
}

Is This Answer Correct ?    26 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the translation phases used in c language?

1085


What happens if you free a pointer twice?

1042


What are the advantage of c language?

1025


What extern c means?

950


How can I find out the size of a file, prior to reading it in?

1135


Tell us bitwise shift operators?

1051


Why is structure padding done in c?

1098


Differentiate between a for loop and a while loop? What are it uses?

1150


write a progrmm in c language take user interface generate table using for loop?

2012


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

2118


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1933


Explain what are binary trees?

1042


How many types of sorting are there in c?

1027


Are pointers integer?

975


Is register a keyword in c?

1013