simple octagon tesselation by 51b

i,j,k;main(n,m){n=getchar()%7;for(m=9*n+3;j>2*n+fmin(n,k)?j=!puts(m%3?"#":""),k=fmin(--m,++i)/3,~m:printf(j++<n-k?"   ":m%3?"#  ":" ##"););}

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

download

return to the top page