/* Program to draw & fill Circle */
#include<stdio.h>#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int x,y,r;
initgraph(&gd,&gm,"c:\\turboc3\\");
cleardevice();
x=getmaxx()/2;
y=getmaxy()/2;
r=100;
setbkcolor(MAGENTA);//Set background color with MAGENTA color
setcolor(RED);//to set border color of any shape with CYAN color
setfillstyle(1,YELLOW);//Set fill style with color
circle(x,y,r); //draw circle
floodfill(x,y,4);// fill object color with setfillstyle color
putpixel(x,y,14);//draw pixel
getch();
closegraph();
}