Tuesday, 4 March 2014

Draw Circle Using C

#include<conio.h>
#include<graphics.h>
#include<stdio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
cleardevice();
        gm=0;
        circle(250,250,100);
       /*  circle(a,b,c);
      a=X axis element
      b=Y axis element
      c=radius
       */
       getch();
       closegraph();
}

No comments:

Post a Comment