def r(k,n,p): if n==1:print p+'*'*k else:[r(i,n-1,p+'*'*(k-i)+'|')for i in range(k+1)] a,_,b=raw_input() r(int(a),int(b),'')
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page