C Program to Draw a Circle using Graphics

 

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
int main(){
int gd = DETECT,gm;
int x ,y ,radius=100;
initgraph(&gd, &gm, "C:\\TC\\BGI");
x = getmaxx()/2;
y = getmaxy()/2;
outtextxy(x-30,75, "CIRCLE");
circle(x, y, radius);
getch();
closegraph();
return 0;
}

Output:
C Program to Draw a Circle using Graphics