100 by nazo

import std.stdio;auto a=["zero"[],"one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","twen","thir","four","fif","six","seven","eigh","nine"];void main(){for(int i;i<100;i++)writefln=i>19?a[15]="for",a[i/10+11]~"ty"~(i%10?" "~a[i%10]:""):i<13?a[i]:a[i+1]~"teen";writef="one hundred";}

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

download

return to the top page