Looped grid by Vim Lover

a=input()
b=range(1,a+1)
for i in b:print" ".join(map(str,b[i-1::-1]+b[1:a-i+1]))

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

download

return to the top page