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
what is the diffrenet bettwen HTTP and internet protocol
How are 16- and 32-bit numbers stored?
Explain the binary height balanced tree?
Write a program to print fibonacci series without using recursion?
What does %d do in c?
Why is it usually a bad idea to use gets()? Suggest a workaround.
what is the difference between 123 and 0123 in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Write a Program to find whether the given number or string is palindrome.
Explain how do you generate random numbers in c?
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
What is the difference between c and python?
how do you programme Carrier Sense Multiple Access
Simplify the program segment if X = B then C ← true else C ← false
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