about | help | code help+videos | done | prefs |
NumInWords
Create the function NumInWords(n) which will be given a number in the range 0 <= n < 1000, and will return a string with the number stated in English words. Try to make your code as short as you can. NumInWords(0) → 'zero' NumInWords(39) → 'thirty-nine' NumInWords(101) → 'one hundred and one' ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy