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


Please Help Members By Posting Answers For Below Questions

Difference between malloc() and calloc() function?

655


What are directives in c?

549


Was 2000 a leap year?

633


Why dont c comments nest?

624


Explain what’s a signal? Explain what do I use signals for?

614






How can variables be characterized?

1653


What extern c means?

546


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?

781


how can I convert a string to a number?

598


What are the application of void data type in c?

719


When c language was developed?

643


Compare array data type to pointer data type

601


Explain how can I convert a number to a string?

650


What is keyword in c?

605


What is data structure in c programming?

575