Search Here

C program to draw Ellipse



/* C program to draw an Ellipse */

#include<graphics.h>
int main()
{
    int gd = DETECT,gm;
    initgraph(&gd,&gm,"c:\\turboc3\\bgi"); /* Windows Turbo-C users */
    //initgraph(&gd,&gm,NULL); /* LINUX users */
    outtextxy(100,30,"Ellipse");
    ellipse(300,200,0,360,200,100);
    delay(5000);
    closegraph();
    return 0;
}


Ellipse
Output

No comments:

Post a Comment