Regular polygon by atami

for(i=n=readline(),m=Math,v=m.round;i;)print(v(m.cos(p=i--*m.PI*-2/n)*1e3),v(m.sin(p)*1e3))

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

download

return to the top page