#include
#include
#include
#include
#include
int midx,midy,i,gdriver = DETECT, gmode,j,x,y,radius,p,xc,yc,x1,y1;
main()
{
initgraph(&gdriver, &gmode, "..//bgi");
setfillstyle(7,8);
bar(0,35,getmaxx(),getmaxy());
settextstyle( 2,0,7);
border();
setcolor(15);
gotoxy(60,14);
outtextxy(80,200,"ENTER THE VALUES OF X-CENTER ");
scanf("%d",&xc);
gotoxy(60,17);
outtextxy(80,250,"ENTER THE VALUES OF Y-CENTER ");
scanf("%d",&xc,&yc);
gotoxy(60,20);
outtextxy(80,300,"ENTER THE RADIUS OF THE CIRCLE ");
scanf("%d",&radius);
setcolor(BLUE);
for(i=0;i<70;i++)
{
setcolor(4);
settextstyle(1,0,3);
outtextxy(50+3*i,10,"MIDPOINT CIRCLE ALGORITHM");
setcolor((rand()%10)+1);
circle(20+3*i,19,12);
circle(410+3*i,19,12);
delay(7);
setcolor(0);
settextstyle(1,0,3);
outtextxy(50+3*i,10,"MIDPOINT CIRCLE ALGORITHM");
circle(20+3*i,19,12);
circle(410+3*i,19,12);
settextstyle(1,0,1);
setfillstyle(7,8);
bar(300,450,610,477);
setcolor(rand()%100);
outtextxy(250,410," ");
delay(1);
}
setfillstyle(7,1);
bar(0,0,getmaxx(),getmaxy());
border();
setcolor(WHITE);
line(getmaxx()/2,0,getmaxx()/2,getmaxy());
line(0,getmaxy()/2,getmaxx(),getmaxy()/2);
midx = getmaxx() / 2;
midy = getmaxy() / 2;
setcolor(4);
x=0;
y=radius;
plotpoints();
p=1-radius;
while(x
|