C graphics program to draw ellipse#include <graphics.h>
#include <conio.h>
void main()
{
int d,m;
int sangle=0,endangle=360,xradius=200,yradius=40;
int midx,midy;
d=DETECT;
initgraph(&d,&m,"c:\\tc\\bgi");
midx=getmaxx()/2;
midy=getmaxy()/2;
ellipse(midx,midy,sangle,endangle,xradius,yradius);
getch();
closegraph;
}
Output :
0 comments:
Post a Comment