Drawing concentric circles-c program

by Mohan 2012-09-20 22:03:04


Drawing concentric circles
#include <graphics.h>

int main()
{
int gd = DETECT, gm;
int x = 320, y = 240, radius;

initgraph(&gd, &gm, "C:\\TC\\BGI");

for ( radius = 25; radius <= 125 ; radius = radius + 20)
circle(x, y, radius);

getch();
closegraph();
return 0;
}

Tagged in:

974
like
0
dislike
0
mail
flag

You must LOGIN to add comments