C Program to Draw an Ellipse in Graphics

#include<graphics.h>
#include<stdio.h>
#include<conio.h>
void main( )
{
  int gd = DETECT, gm;
  initgraph(&gd, &gm, "C:\\TC\\BGI");
  ellipse(100,100,0,360,20,10);
  //Ellipse(x1,y1,0,360,xAxisRadius,yAxisRadius)
  getch( );
  closegraph( );
}

OUTPUT:

No comments:

Post a Comment