n=gets.to_i n.times do|i| n.times do|j| print 1+(i-j).abs,(j+1==n)?"\n":" " end end
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page