Write an algorithm to calculate the area of a circle when the radius is given (area=314 * radius * radius)
Answers
Answer:
Imagine a point P having a specific location; next, imagine all the possible points that are some fixed distance r from point P. A few of these points are illustrated below. If we were to draw all of the (infinite number of) points that are a distance r from P, we would end up with a circle, which is shown below as a solid line.
Thus, a circle is simply the set of all points equidistant (that is, all the same distance) from a center point (P in the example above). The distance r from the center of the circle to the circle itself is called the radius; twice the radius (2r) is called the diameter. The radius and diameter are illustrated below.
The Circumference of a Circle
As with triangles and rectangles, we can attempt to derive formulas for the area and "perimeter" of a circle. Unlike triangles, rectangles, and other such figures, the distance around the outside of the circle is called the circumference rather than the perimeter-the concept, however, is essentially the same.