Write a progrm in C To Covert digit to Leter? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
- 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