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’s the special use of UNIONS?
What is pointer and structure in c?
Can the “if” function be used in comparing strings?
Can variables be declared anywhere in c?
Explain what are compound statements?
given post order,in order construct the corresponding binary tree
How to throw some light on the b tree?
What does double pointer mean in c?
What is atoi and atof in c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What is a MAC Address?
Can we declare variables anywhere in c?
What is structure padding in c?
What is the difference between pure virtual function and virtual function?
write a c program for swapping two strings using pointer