Write a c program to read a positive number and display it
in words.?
ex: 123=one two three
help me....
Answer Posted / melwin
The input which is in integer form separate each number by / and % operator store it in array a[i],then using switch case function assign each case from 0 to 1 assigning each case with string, for eg case 1 shld have String "ONE" like wise till case 9, copy that function and store it an a variable using string copy function.then print the string,increment the value of array from i to i+1 and again repeat the switch case.and print the consecutive values.
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Difference between malloc() and calloc() function?
What are directives in c?
Was 2000 a leap year?
Why dont c comments nest?
Explain what’s a signal? Explain what do I use signals for?
How can variables be characterized?
What extern c means?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
how can I convert a string to a number?
What are the application of void data type in c?
When c language was developed?
Compare array data type to pointer data type
Explain how can I convert a number to a string?
What is keyword in c?
What is data structure in c programming?