write a program to print area and circumference of a circle
computer class 9 ICSE
Answers
Answer:
tq for the answer
Explanation:
Area of circle
In geometry, the area enclosed by a circle of radius r is πr2. Here the Greek letter π represents the constant ratio of the circumference of any circle to its diameter, approximately equal to 3.14159.
One method of deriving this formula, which originated with Archimedes, involves viewing the circle as the limit of a sequence of regular polygons. The area of a regular polygon is half its perimeter multiplied by the distance from its center to its sides, and the corresponding formula–that the area is half the perimeter times the radius–namely, A = 1\2× 2πr × r=πr^2, holds in the limit for a circle.
Although often referred to as the area of a circle in informal contexts, strictly speaking the term disk refers to the interior of the circle, while circle is reserved for the boundary only, which is a curve and covers no area itself. Therefore, the area of a disk is the more precise phrase for the area enclosed by a circle.
circumference of a circle
In geometry, the circumference (from Latin circumferens, meaning "carrying around") is the perimeter of a circle or ellipse.[1] That is, the circumference would be the arc length of the circle, as if it were opened up and straightened out to a line segment.[2] More generally, the perimeter is the curve length around any closed figure. Circumference may also refer to the circle itself, that is, the locus corresponding to the edge of a disk.
Circumference (C in black) of a circle with diameter (D in cyan), radius (R in red), and centre (O in magenta). Circumference = π × diameter = 2π × radius.↑