SIMPLE CIRCLE WITHOUT USING ALGO.


#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{  int gm,gd;
gd=DETECT;
initgraph(&gd,&gm,"");
int x,y,r;
printf("enter the positions of x and y");
scanf("%d%d",&x,&y);
printf("enter the radius");
scanf("%d",&r);
circle(x,y,r);
getch();
}

Comments

Popular posts from this blog

REFLECTION OF A TRIANGLE (COMPUTER GRAPHICS)