Regular polygon by nn

float i;main(n){for(scanf("%d",&n);i<6.28;i+=6.28318/n)printf("%.f %.f\n",1e3*cos(i)+.01,1e3*sin(i));}

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

download

return to the top page