Regular polygon by teebee

n=scan("stdin")
write(sprintf("%.f %.f",1e3*cos(x<-(0:(n-1))*2*pi/n)+.01,1e3*sin(x)),"")

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

download

return to the top page