Exercise 5: WAP to create circles that will keep on growing till the assigned number.
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gd=DETECT, gm; int i;
clrscr();
initgraph (&gd,&gm,"c:\\turboc3\\bgi");
for(i=0;i<100;i++)
{
setcolor(i);
//coordinates of center from x axis, y axis, radius
circle(200,200,20+i*2);
delay(30);
//cleardevice(); //try with and without cleardevice();
}
getch();
closegraph();
}