Write a Program to draw basic graphics construction like line, circle, arc, ellipse, and rectangle.

Sharing is caring!
Write a Program to draw basic graphics construction like line, circle, arc, ellipse and rectangle.

#include<stdio.h>

#include<graphics.h>

#include<conio.h>

#include<dos.h>

Program To Draw Basic Graphics Construction Like Line Circle Arc Ellipse And Rectangle

void main()


{


int gd=DETECT,gm;


initgraph (&gd,&gm,”c:\turboc3\bgi”);


setbkcolor(GREEN);

// LINE


printf(“\t\t\t\n\nLINE”);


line(50,40,190,40);

// RECTANGLE


printf(“\t\t\n\n\n\nRECTANGLE”);


rectangle(125,115,215,165);


// ARC

printf(“\t\t\t\n\n\n\n\n\n\nARC”);


arc(120,200,180,0,30);

// CIRCLE

printf(“\t\n\n\n\nCIRCLE”);

circle(120,270,30);

// ECLIPSE

printf(“\t\n\n\n\nECLIPSE”);

ellipse(120,350,0,360,30,20);

getch();

}

Wa Program To Draw Basic Graphics Construction Like Line Circle Arc Ellipse And Rectangle. 

Flipkart Coupons and Offers Mar 2021 Flat 70% Today Promo Codes

https://youtu.be/Ez6cHDT59p4

Related Post

Leave a Reply

Your email address will not be published.