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
Difference between linking and loading?
Is main a keyword in c?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
What is difference between && and & in c?
What is the difference between NULL and NUL?
What is a newline escape sequence?
Is c is a low level language?
What is the use of a conditional inclusion statement in C?
What is meant by inheritance?
What is merge sort in c?
What math functions are available for integers? For floating point?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
how to make a scientific calculater ?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What is the use of function in c?