Draw a circle in c program:
void main()
{
clrscr();
int i,r=50,t,j,x,y;
int gd,gm;
gd =DETECT;
initgraph(&gd,&gm,"");
for(x=50;x<=150;x++)
for(y=50;y<=150;y++)
{
if((x-100)*(x-100) +(y-100)*(y-100) <=2510&&x*x+y*y>=2490)
putpixel(x,y,10);
delay(1);
}
getch();
}