C Program to Draw a Circle in Graphics

#include<graphics.h>
#include<stdio.h>
#include<conio.h>
void main( )
{
  int gd = DETECT, gm;
  initgraph(&gd, &gm, "C:\\TC\\BGI");
  circle(100,100,10); //Circle(X1,Y1,radius)
  getch( );
  closegraph( );
}

OUTPUT:

No comments:

Post a Comment