100 by tabasa

#include <string.h>\x0d
#include <iostream.h>\x0d
#define c cout<<\x0d
#define e <<endl\x0d
int i,j;\x0d
char a[28][10]={"zero","one",\x0d
"two","three","four","five","six",\x0d
"seven","eight","nine","ten","eleven","twelve",\x0d
"thir","four","fif","six","seven","eigh","nine",\x0d
"twen","thir","for","fif","six","seven","eigh","nine"};\x0d
main()\x0d
{\x09\x0d
for(i=13;i<20;i++){strcat(a[i],"teen");}\x0d
for(i=0;i<20;i++){c a[i]e;}\x0d
for(i=20;i<28;i++){c strcat(a[i],"ty")e;\x0d
for(j=1;j<10;j++){c a[i]<<" "<<a[j]e;}\x0d
}\x0d
c"one hundred";\x0d
}

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

download

return to the top page