Q:

Drawing concentric circles using c GRAPHICS.H

0

Drawing concentric circles using c graphics.h 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#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;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now