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


Please Help Members By Posting Answers For Below Questions

swap 2 numbers without using third variable?

662


What is the difference between volatile and const volatile?

565


Is calloc better than malloc?

578


What would be an example of a structure analogous to structure c?

576


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?

579






What is the difference between far and near in c?

602


How a string is stored in c?

589


What is floating point constants?

689


Why calloc is better than malloc?

572


What is integer constants?

622


Who invented bcpl language?

705


What does c value mean?

628


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

582


Tell us bitwise shift operators?

596


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1859