Sierpinski Carpet by 51b

void main(){for(int n="\x03\x09\x1b"[-*(&*[0]-8)%3],m=n,l;m--;)for(l=n;~l;)printf=&*(l--?m/9*4+m/3+m&l/9*4+l/3+l&21?"  ":"::":\n);}

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

download

return to the top page