#include<dos.h>
#include<graphics.h>
#include<iostream.h>
#include<conio.h>
void main()
{
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"");
do
{
int r=5;
for(int i=0;i<14;i++)
{
setcolor(i);
circle(300,250,r);
r=r+15;
delay(200);
}
for(i=14;i>0;i--)
{
setcolor(0);
circle(300,250,r);
r=r-15;
delay(200);
}
setcolor(15);
}while (!kbhit());
getch();
}
#include<graphics.h>
#include<iostream.h>
#include<conio.h>
void main()
{
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"");
do
{
int r=5;
for(int i=0;i<14;i++)
{
setcolor(i);
circle(300,250,r);
r=r+15;
delay(200);
}
for(i=14;i>0;i--)
{
setcolor(0);
circle(300,250,r);
r=r-15;
delay(200);
}
setcolor(15);
}while (!kbhit());
getch();
}
No comments:
Post a Comment