Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //(i)Circle
- //(ii)Rectangle
- //(iii)Square
- //(iv)Concentric circles
- //(v)Ellipse
- //(vi)Line
- #include<graphics.h>
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int gd=DETECT,gm,x,y;
- initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
- x=getmaxx();
- y=getmaxy();
- circle(x/2,y/2,15);
- rectangle(275,204,363,273);
- rectangle(x/2-20,y/2-20,x/2+20,y/2+20);
- ellipse(x/2,y/2,0,360,40,30);
- circle(x/2,y/2,60);
- circle(x/2,y/2,70);
- circle(x/2,y/2,80);
- circle(x/2,y/2,90);
- circle(x/2,y/2,100);
- line(0,y/2,x,y/2);
- line(x/2,0,x/2,y);
- getch();
- closegraph();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement