void main()
{ float pi=3.14,area,perimeter,r=2;
area=pi*r*r;
perimeter=2*pi*r;
getch();
}
Chat with our AI personalities
PROGRAM TO FIND AREA & PERIMETER OF CIRCLE IN C++#include #include void main(){clrscr();double rad, area, perimeter;coutrad;area=3.14*rad*rad;perimeter=2*3.14*rad;cout
Learn c programming and geometry. It will be easy when you know both.
Unless the area is a regular polygon (or a circle) you cannot.
The area of a circle is described by the equations: A=πr2 and the perimeter of a circle is described by the equation: C=πd where: A is the Area C is the circumference, or perimeter r is the radius d=diameter=2r π= pi, the ratio of diameter to circumference (3.14159)
There is no perimeter of a circle. Only flat shapes have perimeters. You can however, find the circumference, surface area, and volume.