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 diffrenet bettwen HTTP and internet protocol

1841


How are 16- and 32-bit numbers stored?

1293


Explain the binary height balanced tree?

1195


Write a program to print fibonacci series without using recursion?

1150


What does %d do in c?

968


Why is it usually a bad idea to use gets()? Suggest a workaround.

1795


what is the difference between 123 and 0123 in c?

1209


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1078


Write a Program to find whether the given number or string is palindrome.

1283


Explain how do you generate random numbers in c?

1091


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1237


What is the difference between c and python?

1184


how do you programme Carrier Sense Multiple Access

1971


Simplify the program segment if X = B then C ← true else C ← false

3023


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1705