RavageLvl 20
- Edited
Important: you might have noticed that of recent times, the challenges are involving taking an input and converting it to something. Please, do not think I'm losing creativity! Rather, that decision is the fruit of some thinking in which I found that the more outputs are possible, the more involved the coding will get. Anyways...
Challenge #4 - Number to English
This one should be genuinely hard, and open to lots of solutions and improvements. Write a 1-parameter function that takes an integer (whole number) greater than or equal to 0 and outputs that in English. For example, 1 becomes "one", 10 becomes "ten", 10000 becomes "ten thousand". However, note that there is a hyphen between the 10s and the 1s, for example, 92 is "ninety-two". This does not apply to 100s or more: 106 = one hundred and six. 126, however, would be "one hundred twenty-six".
Previous winner was, once again, @Varrience . Beat him! I'll be surprised to see a sub-500!
And wish a happy birthday to @[WUT] Adam !