//Write a program to draw a Tree in C & C++ language
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<stdlib.h>
void main()
{
int gd=DETECT,gm;
int i;
initgraph(&gd,&gm,”..\\bgi”);
line(207,220,207,280);
line(240,220,240,280);
ellipse(200,200,90,280,25,30);
ellipse(186,170,60,240,25,30);
ellipse(190,142,40,200,29,30);
ellipse(220,117,20,170,29,30);
ellipse(250,117,0,120,29,30);
ellipse(260,127,310,60,35,30);
ellipse(274,150,280,50,35,30);
ellipse(270,180,260,22,35,30);
ellipse(243,200,270,340,35,30);
getch();
closegraph();
}
Output