adsense

Hii, welcome to my site. My name is Om prakash kartik. This blog helps you to learn programming languages concepts.

Program in C to create house using Graphics

Program in C to create house using Graphics



#include<stdio.h>
#include<conio.h>
#include<graphics.h>
 void main()
  {
 int gdriver = DETECT,gmode;
 int i,j;
 initgraph(&gdriver,&gmode,"C:\\TC\\BGI");
 outtextxy(150,80,"Programming.OM");
 rectangle(100,250,300,400);
 rectangle(150,200,350,250);
 line(100,250,150,200);
 line(350,200,400,250);
 line(400,250,400,380);
 line(300,400,400,380);
 line(350,250,400,250);
 line(300,250,350,200);
 //Door
 rectangle(150,300,200,400);
 //window
 rectangle(330,300,360,320);
 getch();
 closegraph();
  }
Output






Post a Comment

1 Comments

Masfikur Rahman said…

Greatful the work..many many important this post.Helpful post for us.Very Important this article.Thanks for sharing article.This post is very important for us. This post is support us . Thanks you writter Sell your house quickly kansas city