#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,midx,midy,i;
initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
midx=getmaxx()/2;midy=getmaxy()/2;
for(i=0;i<=450;i=i+60)
{
ellipse(midx-200+i,midy,0,180,40,70);
}
for(i=0;i<=400;i=i+60)
{
ellipse(midx-170+i,midy,180,360,10,20);
}
line(midx-240,midy,midx-270,midy);
line(midx+260,midy,midx+290,midy);
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.