C program using Graphics.h to create some graphics to the program

//This is the program to draw a simple circle using graphics.h header file
  
#include <graphics.h>
int main()
{ 
 int gd = DETECT, gm;
 int x = 160, y = 120, radius;
 initgraph(&gd, &gm, "C:\\TC\\BGI");
 for ( radius = 20; radius <= 120 ; radius = radius + 20)
 circle(x, y, radius);
 getch();
 closegraph();
 return 0;
}
return 0;
}
  

Post a Comment

0 Comments