draw a circle in c programvoid mainclrscrint


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();

}

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: draw a circle in c programvoid mainclrscrint
Reference No:- TGS0174767

Expected delivery within 24 Hours