SlideShare a Scribd company logo
Ques1. Write a program of draw a circle in c.
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:TCBGI");
circle(300,250,80);
getch();
closegraph();
return 0;
}
Ques2. Write a program of draw a Line in c.
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:TCBGI");
line(500,150,250,150);
getch();
closegraph();
return 0;
}
Ques3. Write a program of draw a Rectangle in c.
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:TCBGI");
line(150,150,150,70);
line(70,150,150,150);
line(70,70,150,70);
line(70,70,70,150);
getch();
closegraph();
return 0;
}

More Related Content

DOCX
syed mohd naqi zaidi
DOCX
Write a program to perform translation.
PDF
Clock For My
DOCX
Write a program to perform translation
PDF
Program of bar 3 d
DOCX
Experement no 6
PDF
Ooprc3c
PPTX
CSC – 184 Programming C
syed mohd naqi zaidi
Write a program to perform translation.
Clock For My
Write a program to perform translation
Program of bar 3 d
Experement no 6
Ooprc3c
CSC – 184 Programming C

What's hot (15)

PDF
Listing for Circles
DOCX
Write a program that calculate the no of prime no,even and odd no.
ODP
Use of django at jolt online v3
PDF
1 borland c++ 5.02 by aramse
PDF
Week 5
DOCX
Project code for Project on Student information management system
DOC
Ffffffffffff
RTF
Ea45 070215
DOCX
DOCX
Bti1022 lab sheet 8
DOCX
Cpp programs
PPT
Quadratic Functions
PDF
Statistics.cpp
Listing for Circles
Write a program that calculate the no of prime no,even and odd no.
Use of django at jolt online v3
1 borland c++ 5.02 by aramse
Week 5
Project code for Project on Student information management system
Ffffffffffff
Ea45 070215
Bti1022 lab sheet 8
Cpp programs
Quadratic Functions
Statistics.cpp
Ad

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Machine Learning_overview_presentation.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
A Presentation on Artificial Intelligence
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Machine learning based COVID-19 study performance prediction
PDF
Electronic commerce courselecture one. Pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
Machine Learning_overview_presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
20250228 LYD VKU AI Blended-Learning.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
A Presentation on Artificial Intelligence
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
Spectral efficient network and resource selection model in 5G networks
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Machine learning based COVID-19 study performance prediction
Electronic commerce courselecture one. Pdf
Ad

Include

  • 1. Ques1. Write a program of draw a circle in c. #include<stdio.h> #include<conio.h> #include<graphics.h> main() { int gd=DETECT,gm; initgraph(&gd,&gm,"C:TCBGI"); circle(300,250,80); getch(); closegraph(); return 0; }
  • 2. Ques2. Write a program of draw a Line in c. #include<stdio.h> #include<conio.h> #include<graphics.h> main() { int gd=DETECT,gm; initgraph(&gd,&gm,"C:TCBGI"); line(500,150,250,150); getch(); closegraph(); return 0; }
  • 3. Ques3. Write a program of draw a Rectangle in c. #include<stdio.h> #include<conio.h> #include<graphics.h> main() { int gd=DETECT,gm; initgraph(&gd,&gm,"C:TCBGI"); line(150,150,150,70); line(70,150,150,150); line(70,70,150,70); line(70,70,70,150); getch(); closegraph(); return 0; }