print this triangle by rolf

int main(n,b,m,q){for(n=2;n<64;n++){for(b=2;b<n+1;b++){char s[10],d;m=n;s[0]=0;while (m){q=m%b;memmove(s+1,s,9);s[0]=48+(q>9?1:0)*39+q;m/=b;}printf("%s%c",s,b==n?'\n':' ');}}}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page