Write a Program to draw Ellipse in C

/*Ellipse*/
#include<stdio.h>
#include<conio.h>
#include<graphics.h>

int main()
{
   int gm,gd=DETECT;

   initgraph(&gd,&gm,"C:\\turboc3\\bgi");

   setcolor(YELLOW);
   outtextxy(300,170,"Ellipse");
   /*ellipse(int x, int y, int stangle, int endangle,
   int xradius, int yradius);*/

   ellipse(330,260,0,360,20,70);
   getch();
   closegraph();
   return 0;
}





Previous
Next Post »