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

application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

591


What are runtime error?

612


Implement bit Array in C.

660


What is call by value in c?

544


Explain what math functions are available for integers? For floating point?

600






Explain how can you restore a redirected standard stream?

577


Explain what is dynamic data structure?

632


How can I do graphics in c?

582


Explain the Difference between the New and Malloc keyword.

674


Are there any problems with performing mathematical operations on different variable types?

556


What is the newline escape sequence?

576


What is modifier & how many types of modifiers available in c?

594


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

596


What is the purpose of scanf() and printf() functions?

706


How can I write a function that takes a format string and a variable number of arguments?

594