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
In which language linux is written?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Did c have any year 2000 problems?
How can I automatically locate a programs configuration files in the same directory as the executable?
What is main () in c language?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Explain what is the difference between far and near ?
What is void c?
What are 'near' and 'far' pointers?
How do you view the path?
How can I handle floating-point exceptions gracefully?
What is cohesion in c?
What is scanf_s in c?
can anyone suggest some site name..where i can get some good data structure puzzles???
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics