+ 1

Write a progrm in C To Covert digit to Leter?

i.e. when enter a number like that 1234. oupt : one thousand two hundreds thirty four.

6th Oct 2017, 7:39 PM
Sunil kumar
Sunil kumar - avatar
1 Resposta
- 2
You can use some switch statements with all cases for units, tens, hundreds, etc. And evaluate every number with his respective switch statement depending of his position towards to the left. (PD: I use Google Translate, sorry)
6th Oct 2017, 8:27 PM
Engel Aguilar
Engel Aguilar - avatar