Sierpinski Fractal by 51b

i,j;main(n){for(n<<=getchar()-48;i<n;j>i/2?puts(""),i++,j=0:0)printf("%*s",j++?4:n-i+1+i%2*2,i/2&j^j?"":i%2?"/__\\":"/\\");}

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

download

return to the top page