#include<graphics.h>
#include<conio.h>
void main()
{
int gd = DETECT, gm,midx,midy;
initgraph(&gd, &gm, "C:\\TurboC3\\BGI");
midx=getmaxx()/2;midy=getmaxy()/2;
setcolor(MAGENTA);
{
circle(midx,midy,10);
circle(midx,midy,100);
}
setcolor(YELLOW);
{
line(midx-100,midy,midx-10,midy);
line(midx+100,midy,midx+10,midy);
line(midx,midy-100,midx,midy-10);
line(midx,midy+100,midx,midy+10);
line(midx-70,midy-70,midx-7,midy-7);
line(midx+70,midy+70,midx+7,midy+7);
line(midx+7,midy-7,midx+70,midy-70);
line(midx-70,midy+70,midx-7,midy+7);
line(midx-93,midy-35,midx-9,midy-4);
line(midx+93,midy+35,midx+9,midy+4);
line(midx+9,midy-4,midx+93,midy-35);
line(midx-93,midy+35,midx-9,midy+4);
line(midx-39,midy-91,midx-4,midy-9);
line(midx+39,midy+91,midx+4,midy+9);
line(midx+4,midy-9,midx+39,midy-91);
line(midx-39,midy+91,midx-4,midy+9);
}
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.