main(s,n,d,f){char t[9];for(n=1;++n<10;)for(*t=48;++*t<58;)for(s=0;++s<9;){for(d=0;++d<n;)f=(t[d]=t[d-1]+s)<58;t[d]=0;f?puts(t):0;}}

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

download

return to the top page