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 are different types of variables in c?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Can you please explain the difference between exit() and _exit() function?
Explain logical errors? Compare with syntax errors.
I need testPalindrome and removeSpace
#include
What is pragma in c?
Write a code to remove duplicates in a string.
is it possible to create your own header files?
Do you know the purpose of 'register' keyword?
How do we declare variables in c?
Is c dynamically typed?
Write a program in c to replace any vowel in a string with z?
What does the error message "DGROUP exceeds 64K" mean?
Write a Program to accept different goods with the number, price and date of purchase and display them
Why do we use null pointer?