Write a program to input a digit and print it in words
Answers
Answered by
3
Answer:
Logic of convert number in words
Input number from user. Store it in some variable say num .
Extract last digit of given number by performing modulo division by 10. ...
Switch the value of digit found above. ...
Remove last digit from num by dividing it by 10 i.e. num = num / 10 .
Repeat step 2 to 4 till number becomes 0.
Similar questions
Geography,
2 months ago
Psychology,
2 months ago
Geography,
6 months ago
Math,
6 months ago
Biology,
10 months ago