Zigzag by csanders

i,j,k,x;main(m,c){for(scanf("%d %c",&x,&c);i<x;++i,putchar(10))for(j=k=0;j<2*x*x-4*x+3+i;++j)putchar(k-i?32:c),k+=m=k?k-x+1?m:-1:1;}

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

download

return to the top page