Write a Program to draw TV in C

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

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

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

   setcolor(YELLOW);
   rectangle(280,90,340,130);
   rectangle(290,100,330,120);

   line(300,130,280,180);
   line(325,130,350,180);

   rectangle(260,180,370,200);

   getch();
   closegraph();

   return 0;
}





Previous
Next Post »