spiral by recursive

l=r=input()
h=1
c=v=0
while l:exec'r+=v;c+=h;print`c-1`+`r-1`,;'*int(l);h,v=v,-h;l-=.5

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

download

return to the top page