a=io.read()for i=1,a do for j=1,math.max(i,a-i+1)do io.write((j==a-i+1 or j==i)and"X"or" ")end print()end

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

download

return to the top page