#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"..\\bgi");
do
{
int x=20;
int y=20;
int r=20;
for(int i=0;i<=80;i++)
{
clearviewport();
circle(x,y,r);
x=x+5;
y=y+5;
delay(5);
}
for(int j=0;j<=40;j++)
{
clearviewport();
circle(x,y,r);
x=x+5;
y=y-5;
delay(5);
}
for(int k=0;k<=50;k++)
{
clearviewport();
circle(x,y,r);
x=x-5; y=y-5;
delay(5);
delay(5);
}
for(int l=0;l<=70;l++)
{
clearviewport();
circle(x,y,r);
x=x-5; y=y+5;
delay(5);
}
for(int m=0;m<=70;m++)
{
clearviewport();
circle(x,y,r);
x=x+5; y=y+5;
delay(5);
}}
while(!kbhit());
Closegraph();
}