Program to print the different color’s Ellipses

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
  clrscr();
  int gm=DETECT,gd,i;
  initgraph(&gm,&gd,"");
   cleardevice();
 for(i=1;i<11;i++)
     {
        setfillstyle(i,i);
       fillellipse(320,240,20,100);
  getch();
}
 getch();
  }

Leave a Reply