Exercise 4: WAP to draw concentric circles.

#include<stdio.h>
#include<graphics.h>
#include<conio.h>
 
void main(){
   int gd = DETECT,gm;
   int x ,y;
   initgraph(&gd, &gm, "C:\\TC\\BGI");
   x = getmaxx()/2;
   y = getmaxy()/2;
   outtextxy(240, 50, "Concentric Circles");
   setcolor(RED);
   circle(x, y, 30);
   setcolor(GREEN);
   circle(x, y, 50);
   setcolor(YELLOW);
   circle(x, y, 70);
   setcolor(BLUE);
   circle(x, y, 90);
   getch();
   closegraph();
}