IMPLEMENTATION OF MIDPOINT CIRCLE ALGORITHM mohanmo V+ Member   05-06-2013, 10:01 PM PROGRAM NAME:IMPLEMENTATION OFMIDPOINT CIRCLE ALGORITHM PROGRAM LANGUAGE:C PROGRAM SOFTWARE:C Complier PROGRAM DESCRIPTION:The MidPoint Circle Algorithm is an algorithm used to determine the points needed for drawing a circle. The algorithm is a variant of Bresenham's line algorithm, and is thus sometimes known as Bresenham's circle algorithm. Which starts accordingly with the circle equation x2 + y2 = r2. And with the center of the circle is located at (0, 0) Code: ```#include   /* include the necessary header files*/ #include #include #include main() { int gd=DETECT,gin; int xcenter,ycenter,radius; int p,x,y,twox,twoy;   /*request auto detect*/ initgraph(&gd,&gin,"C:\\tc\\bgi"); x=0; printf("\nEnter the radius value:");  /* get the value of the radius and center values*/ scanf("%d",&radius); printf("Enter the center values:"); scanf("%d %d",&xcenter,&ycenter); plotpoints(xcenter,ycenter,x,y); /* call the plotpoints function*/ y=radius; p=1-radius; twox=2*x; twoy=2*y; printf("\np\tx\ty\t2x\t2y\n"); printf("\n%d\t%d\t%d\t%d\t%d\n",p,x,y,twox,twoy); while(x