|
---|
Numbers to English |
Write a function that accepts a positive integer between 0 and 999 inclusive and returns a string representation of that integer written in English. |
Examples |
<br>numToEng(0)<br>output = "zero"<br><br>numToEng(18)<br>output = "eighteen"<br><br>numToEng(126)<br>output = "one hundred twenty six"<br><br>numToEng(909)<br>output = "nine hundred nine"<br> |
Notes |
- There are no hyphens used (e.g. “thirty five” not “thirty-five”). - The word “and” is not used (e.g. “one hundred one” not “one hundred and one”). |