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
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
int far *near * p; means
List the difference between a While & Do While loops?
Explain how do you declare an array that will hold more than 64kb of data?
What is unsigned int in c?
What do you mean by recursion in c?
what is the structure pointer?
How are pointers declared in c?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Write a program to print ASCII code for a given digit.
Is c easier than java?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
hi, which software companys will take,if d candidate's % is jst 55%?
How can you return multiple values from a function?
What is structure pointer in c?