Home / C / Program in C to draw a HUT

Program in C to draw a HUT

C program to draw a hut
#include<graphics.h>
#include<stdio.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,”c:\\tc\\bgi”);
setcolor(5);
line(100,200,170,200);
line(100,400,170,400);
line(100,200,100,400);
line(170,200,170,400);
line(100,200,135,50);
line(170,200,135,50);
getch();
closegraph();
}

 

OUTPUT:

Tags: Program in C to draw a HUT, c program to draw a hut, graphics program to draw a hut in c.

 

Check Also

Restrict Mouse Pointer Position C Graphics Program

This C Program will restrict the Mouse Pointer location or to a particular position or x,y ...

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.