#include<conio.h>
#include<graphics.h>
void main()
{
int x,y,r;
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
clrscr();
printf("Enter the center coordinates and radius of circle : ");
printf("x");
scanf("%d",&x);
printf("y");
scanf("%d",&y);
printf("radius");
scanf("%d",&r);
printf("The required circle is : ");
circle(x, y, r);
getch();
closegraph();
}
|
|
| To draw a circle on the output screen whose parameters are user defined |
|
| |
|
|
|
|