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
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
What does printf does?
What is the difference between union and structure in c?
What is wild pointer in c with example?
I need previous papers of CSC.......plz help out by posting them.......
How can type-insensitive macros be created?
What are the advantages of external class?
Explain high-order bytes.
How a string is stored in c?
Why do we need arrays in c?
Does free set pointer to null?
Can i use “int” data type to store the value 32768? Why?
hi, which software companys will take,if d candidate's % is jst 55%?
Explain how can you avoid including a header more than once?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?