Regular polygon by twobit

from math import*
i=0;a=input();exec'print"%.f %.f"%(cos(i)*1e3+.01,sin(i)*1e3+.01);i+=2*pi/a;'*a

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

download

return to the top page