100 by Tomac

N="zero one two three four five six seven eight nine".split(" ");for(K=[i=-1,P=print,"twen","thir","for","fif",N[6],N[7],"eigh",N[9]];i++<99;)P(i-12?i-11?i-10?i<10?N[i]:i<20?((i-14?K[i-10]:N[4])+"teen"):(K[(i-i%10)/10]+(i%10?"ty "+N[i%10]:"ty")):"ten":"eleven":"twelve");P("one hundred")

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page