/******************************************************************************
Curve Tracing - Ellipse
*******************************************************************************/
#include <stdio.h>
#include <graphics.h>
void main()
{
int r;
int gd = DETECT ,gm;
initgraph(&gd, &gm, "C:\\TC\\BGI");
setcolor(3);
// location of ellipse
int x = 250, y = 200;
// here is the starting angle
// and end angle
int start_angle = 0;
int end_angle = 360;
// radius from x axis and y axis
int x_rad = 100;
int y_rad = 50;
// ellipse function
ellipse(x, y, start_angle,
end_angle, x_rad, y_rad);
}