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 translation phases used in c language?
What happens if you free a pointer twice?
What are the advantage of c language?
What extern c means?
How can I find out the size of a file, prior to reading it in?
Tell us bitwise shift operators?
Why is structure padding done in c?
Differentiate between a for loop and a while loop? What are it uses?
write a progrmm in c language take user interface generate table using for loop?
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
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....
Explain what are binary trees?
How many types of sorting are there in c?
Are pointers integer?
Is register a keyword in c?