-->
Friday, June 24, 2022
Design a Tree | C Graphics Program
FindError
Home
Catagories
C Programs
C Graphics
Python Programs
About
Contact
Home
About
Contact
C Graphics Programs
Design a Home
Design a Home with color
Design a Tree
Design a Car
Draw a Truck
Draw Rabindranath Tagore
Mom and Baby Elephant
Design a Tree using C Graphics
Q. Write a program to design a Tree using C graphics
Output
Source Code
// WAP to design a tree using C graphics // Code for TurboC++ compiler #include
#include
void show(){ //ground line(0,300,800,300); // tree line(300,150,300,295); line(310,157,310,295); line(300,295,295,300); line(310,295,318,300); line(310,200,340,170); line(310,190,338,167); line(300,180,270,150); line(300,170,268,145); arc(300,180,200,270,30); arc(260,170,170,297,30); arc(227,132,100,300,30); arc(215,100,90,230,30); arc(230,80,75,170,30); arc(275,60,30,180,40); arc(305,70,0,120,30); arc(335,85,345,95,35); arc(365,125,300,100,35); arc(355,160,270,50,30); arc(332,170,240,330,40); arc(250,120,280,30,25); arc(250,147,260,20,20); arc(315, 130,200,280,25); } void main() { int gr= DETECT, gm; initgraph(&gr, &gm, "c://Turboc3//BGI"); show(); getch(); closegraph(); }
Copy Code
C Graphics Programs
Design a Home
Design a Home with color
Design a Tree
Design a Car
Draw a Truck
Draw Rabindranath Tagore
Mom and Baby Elephant
No comments:
Post a Comment
Newer Post
Older Post
Home
Contact Form
Name
Email
*
Message
*
No comments:
Post a Comment