/* Program to fill Ellipse */
#include<stdio.h>#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int x,y,r;
initgraph(&gd,&gm,"c:\\turboc3\\");
x=getmaxx()/2;
y=getmaxy()/2;
setcolor(5);//set border color
setbkcolor(3);//set background color
setfillstyle(2,4);//set style to fill color
fillellipse(x,y,100,50);//draw & fill color with set fill color
putpixel(x,y,YELLOW);//
getch();
closegraph();
}