Triangle ASCII art by fill

b,c[];main(a){for(;~scanf("%d",&a);puts(memset(c,42,32)))for(b=0,memset(c,0,99);b<=a;b++)printf("|%s\\\n",memset(c,b<a?32:95,b));}

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

download

return to the top page