Regular polygon by nn

with(Math)for(i=n=readline();i;)print(1e3*cos(t=i--*2/n*PI).toFixed(3),-1e3*sin(t).toFixed(3))

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

download

return to the top page