Write a Program to draw Home in C

/*Home*/
#include<stdio.h>
#include<conio.h>
#include<graphics.h>

int main()
{
   int gm,gd=DETECT;

   initgraph(&gd,&gm,"C:\\turboc3\\bgi");
   outtextxy(300,60,"Home");

   setcolor(YELLOW);

   line(300,160,325,120);
   line(350,160,325,120);

   line(325,120,400,120);
   line(420,160,400,120);

   rectangle(300,160,350,220);
   rectangle(350,160,420,220);

   getch();
   closegraph();

   return 0;
}





Previous
Next Post »