You are on page 1of 1

#include <graphics.

h>
#include <conio.h>

void main()
{
int gd = DETECT, gm;
initgraph(&gd, &gm, "C:\\TurboC3\\BGI");
setcolor(YELLOW);
putpixel(20, 80, YELLOW);
outtextxy(10, 120, "Pixel");
line(100, 70, 200, 100);
outtextxy(130, 120, "Line");
circle(300, 55, 50);
outtextxy(275, 120, "Circle");
rectangle(400, 30, 470, 90);
outtextxy(400, 120, "Rectangle");
ellipse(70, 250, 0, 360, 50, 70);
outtextxy(45, 340, "Ellipse");
getch();
closegraph();
}
Output:

You might also like