for(int i=0; i<180; i++){ int x = (int)(50. * cos(PI/180.* i) ); int y = (int)(50. * sin(PI/180.* i) ); point(x+50 , y+50); }