InterviewSolution
Saved Bookmarks
| 1. |
Write a short program to input a digit and print it in words from 0 to 9.? * |
| Answer» 1.input a number say num.2.extract the last digit from that number using dig=num%103.this value of dig is then passed to switch statement.using cases.4.to remove last digit from number use :num=num/10.5.repeat statement 2 to 4 until.num!=0. | |