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
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
What are runtime error?
Implement bit Array in C.
What is call by value in c?
Explain what math functions are available for integers? For floating point?
Explain how can you restore a redirected standard stream?
Explain what is dynamic data structure?
How can I do graphics in c?
Explain the Difference between the New and Malloc keyword.
Are there any problems with performing mathematical operations on different variable types?
What is the newline escape sequence?
What is modifier & how many types of modifiers available in c?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is the purpose of scanf() and printf() functions?
How can I write a function that takes a format string and a variable number of arguments?