while 1: n=input() for i in range(2*n+1):a=abs(n-i);b="|"*(n-a);c="+"*(i!=n);print b+c+" "*(a==0)+"-"*(a*2-1)+c+b
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page