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
swap 2 numbers without using third variable?
What is the difference between volatile and const volatile?
Is calloc better than malloc?
What would be an example of a structure analogous to structure c?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What is the difference between far and near in c?
How a string is stored in c?
What is floating point constants?
Why calloc is better than malloc?
What is integer constants?
Who invented bcpl language?
What does c value mean?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Tell us bitwise shift operators?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?