n=io.read()for i=1,n do for k=1,math.max(i,n)do io.write(0==(k-i)*(k-n)and'X'or' ')end print()n=n-1 end
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page