Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<graphics.h>
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int gd=DETECT,gm;
- initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
- line(319,0,319,479);
- line(0,239,639,239);
- circle(159,119,30);
- outtextxy(170,170,"Circle");
- rectangle(390,150,500,210);
- outtextxy(410,220,"Rectangle");
- ellipse(200,319,0,360,50,25);
- outtextxy(239,360,"Ellipse");
- ellipse(400,350,90,270,50,25);
- outtextxy(430,390,"Half Ellipse");
- getch();
- closegraph();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement