WITCH OF AGNESSI



#include<graphics.h>
#include<math.h>
main()
{
int gd=DETECT,gm,x,y,i,j;
float a;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(RED);
x=getmaxx()/2;
y=getmaxy()/2;
line(x,0,x,480);
line(0,y,640,y);
setcolor(LIGHTMAGENTA);
outtextxy(20,20,"WITCH OF AGNESSI");
for(a=0.001;a<2;a+=0.0001)
{
putpixel(x+40*a,y+10*sqrt(16*(8-4*a)/a),LIGHTBLUE);
putpixel(x+40*a,y-10*sqrt(16*(8-4*a)/a),LIGHTBLUE);
delay(5);
}
getch();
closegraph();
}

Go to the programs pageclick here!!

Hosted by www.Geocities.ws

1