Regular polygon by hallvabo

from math import*
n,k=input(),0
f=lambda x:int(round(1e3*cos(x-k*pi/n)))
exec'print f(0),f(pi/2);k+=2;'*n

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

download

return to the top page