answersLogoWhite

0


Best Answer

Here, maybe a few other shapes as well

#include

#include

void main()

{

int gd=DETECT, gm;

int poly[12]={350,450, 350,410, 430,400, 350,350, 300,430, 350,450 };

initgraph(&gd, &gm, "");

circle(100,100,50);

outtextxy(75,170, "Circle");

rectangle(200,50,350,150);

outtextxy(240, 170, "Rectangle");

ellipse(500, 100,0,360, 100,50);

outtextxy(480, 170, "Ellipse");

line(100,250,540,250);

outtextxy(300,260,"Line");

sector(150, 400, 30, 300, 100,50);

outtextxy(120, 460, "Sector");

drawpoly(6, poly);

outtextxy(340, 460, "Polygon");

getch();

closegraph();

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you draw a circle in c program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you draw a circle in assembly program?

You can draw a circle in assembly program by using a compass-like tool. Secure the tip of the compass and then rotate the compass tool so that it completes the circle.


Write a java code to draw a circle inside in an ellipse?

write a program draw circle and ellipse by using oval methods in java


C program to Draw a line chart?

draw a line chart.


How do you draw a softball?

u draw a circle, then u draw two backwards C's with lines through them.


Draw a flowchart that will accept radius and display the area of circle?

program that display the area of a circle of a reduce


Write a c programme to draw a rainbow?

Write a C program to Draw a RAINBOW and fill the suitable colors ...


Where can you find a sample program to draw a pie chart in a C program?

in BGIDEMO.C, part of TurboC


How do you divide a circle into 3 parts using only a confectionery ruler with no markings?

Draw a diameter on the circle from A to B and mark the midpoint, C (center of the circle). Mark the midpoint, D, of one of those radii (halfway between center and edge). Draw a perpendicular line to the diameter from D to the two edges of the circle, E and F. Draw radii from E to C and F to C. Lines AC, EC, and FC mark the three equal parts of a circle.


How do you draw a tangent to a circle from a point on its circumference?

Short instructions:Construct the diameter of the circle at the tangent point Construct a line at right angles to the diameter at the tangent point. this is a tangent to the circle at that point.Detailed instructions with compass and straight edge:Given: circle C with a point T on the circumference Sought: Tangent to C at TFind the center circle CPlace the needle of the compass on the (circumference of) circle C (anywhere), draw a circle [circle 1] (I think circle 1 has to be smaller than twice the diameter of circle C).Without changing the compass size, place the needle of the compass on the intersection of circles C and circle 1, draw a circle (circle 2)Without changing the compass size, place the needle of the compass on the other intersection of circles C and circle 1, draw a circle (circle 3)Connect the intersections of circle 1 and circle 2 (one is outside and one inside circle A) this we call [ line 1]Connect the intersections of circle 2 and circle 3 (also here one is outside and one inside C) [line 2]The intersection of line 1 and Line 2 is [O]. This is the center of circle CDraw a line [line 3] from [O] through [T] and beyondConstruct the diameter of the circle at [T] (the point for the tangent) and extend it beyond the circumference of circle C With your compass needle at [T] mark off equal distances on [line 3] inside and outside circle C. We call these points [4] & [5]Increase the compass size somewhat and with the needle at [4] draw a circle [circle 4]Without changing the compass draw [circle 5] centered on [5]Construct a line perpendicular to line 3 at [T]The line through the intersections of circle 4 and circle 5 is the sought tangent at [T]Note: although the instructions say "draw a circle" often it is sufficient to just mark a short arc of the circle at the appropriate place. This will keep the drawing cleaner and easier to interpret.


Write a program in 8086 assembly language to draw a circle?

You need an 8086 assembly language pencil.


How to write a Program in C language to draw a house?

here you go nah...


What is the answer in A union B union C in Venn diagram?

Draw a circle.Using any point on the perimeter of that circle as your center, draw another circle of the same radius.Using either of the two points where the perimeters of those circles intersect as your center, draw a third circle of the same radius.Fill in all three circles.You now have a Venn diagram for A ∪ B ∪ C