//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; }
0 Comments