Regular polygon by fill

i;main(n){for(scanf("%d",&n);i<n;i++)printf("%d %d\n",(int)round(1000*cos(6.2832*i/n)),(int)round(1000*sin(6.2832*i/n)));}

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

download

return to the top page