// CODE FOR FUN BY AMI :)
#include<graphics.h>
#include<dos.h>
#include<conio.h>
#include<iostream.h>
void draw(int no)
{
int gd= DETECT, gm;
initgraph(&gd, &gm, "c:\\turboc3\\bgi");
clearviewport();
rectangle(1, 1, getmaxx(), getmaxy());
setbkcolor(WHITE);
setcolor(RED);
int start = 0, end = 1, rad=1;
for(int i=1; i<=(no*360); i++)
{
arc(getmaxx()/2, (getmaxy()-5)/2, start+i, end+i, rad + (i/15));
delay(10);
}
}
void main()
{
int no;
cout<<"How many tracks you want to show ? ";
cin>>no;
clrscr();
draw(no);
getch();
}

madam, you did this in morning..!!!
ReplyDeletei did it when i was student at department, just for fun. I luv coding :)
ReplyDelete