Search Here

C program to draw Circle



/* C program to draw a Circle */

#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,"Circle");
    circle(250,250,150);
    delay(5000);
    closegraph();
    return 0;
}


Circle
Output

No comments:

Post a Comment