//Tower showing radiations
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int i,j,gd=DETECT,gm,midx,midy;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
midx=getmaxx()/2;midy=getmaxy()/2;
for(j=1;j<=6;j++)
{
for(i=j;i<=150;i++)
{
line(midx,midy,midx-50,midy+200);
line(midx,midy,midx+50,midy+200);
line(midx-25,midy+100,midx+25,midy+100);
line(midx-25,midy+100,midx+50,midy+200);
line(midx+25,midy+100,midx-50,midy+200);
arc(midx+i,midy,-30,50,20+i);
arc(midx-i,midy,120,200,20+i);
if(i==150)
break;
clearviewport();
}
}
getch();
closegraph();
}
Good One
ReplyDelete