New course! Every coder should learn Generative AI!
Try a free lesson+ 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.
1 Answer
- 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)