Program To Draw A Circle Using Mid Point Algorithm
Program To Draw A Circle Using Mid Point Algorithm
#include <stdio.h>
#include <dos.h>
#include <graphics.h>
void main()
{
int xc, yc, r;
getch();
}
while (x < y)
{
drawCircle(xc, yc, x, y);
x++;
www.eazynotes.com Gursharan Singh Tatla Page No. 2
if (p < 0)
p = p + 2 * x + 1;
else
{
y--;
p = p + 2 * (x - y) + 1;
}