#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,midx,midy,i,j;
initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
midx=getmaxx()/2;midy=getmaxy()/2;
setcolor(YELLOW);
rectangle(midx-200,midy-200,midx+200,midy+200);
for(i=0;i<=380;i=i+10)
{
line(midx-200,midy-190+i,midx+200,midy-190+i);
//line(midx-190+i,midy-200,midx-190+i,midy+200);
}
setcolor(BLACK);
setfillstyle(1,BLACK);
fillellipse(midx,midy,100,100);
setcolor(YELLOW);
ellipse(midx,midy+150,53,126,75,75);
ellipse(midx,midy+130,40,137,80,75);
ellipse(midx,midy+110,33,147,85,75);
ellipse(midx,midy+90,25,157,87,75);
ellipse(midx,midy+70,17,165,90,75);
ellipse(midx,midy+50,16,165,99,75);
ellipse(midx,midy+30,15,165,104,75);
ellipse(midx,midy+10,15,165,104,75);
ellipse(midx,midy-10,15,157,100,75);
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.