#include "graphics.h"
#include "dos.h"
#include "conio.h"
#include "math.h"
void circles(int x,int y)
{
int i;
for (i=0;i<60;i++)
{
circle(x+60*cos(i),y+60*sin(i),20);
}
}
void main()
{
int gdriver=DETECT,gmode,y,i;
initgraph(&gdriver,&gmode,"D:\\TC\\BGI");
setcolor(15);
for (i=0;;i++)
{
y=i;
if (i==480) i=0;
circles(320,y);
delay(2000);
cleardevice();
if (kbhit()) break;
}
}