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

exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

1180


What does printf does?

1321


What is the difference between union and structure in c?

1279


What is wild pointer in c with example?

1111


I need previous papers of CSC.......plz help out by posting them.......

2351


How can type-insensitive macros be created?

1219


What are the advantages of external class?

1122


Explain high-order bytes.

1179


How a string is stored in c?

1117


Why do we need arrays in c?

1215


Does free set pointer to null?

1066


Can i use “int” data type to store the value 32768? Why?

1235


hi, which software companys will take,if d candidate's % is jst 55%?

2139


Explain how can you avoid including a header more than once?

1147


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1158