#include< iostream>
#include<conio.h>
#include<math.h>
using namespace std;
int main()
{
float radius,area;
cout<<"enter the radius";
cin>>radius;
area=(pow(radius, 2)3.14);
cout<<"area of circle is "<<area<<endl;
}
.
.
In this program you enter radius of circle in output and it will give you the area of circle .
cin>>radius; ( here you enter the radius of circle ).
area=(pow(radius, 2)3.14); ( In the line the processing or calculation of Area of circle.
An Example is shown Below.
Here it shows we I Enter the Radius = 12 and it give us the Area of circle = 452.16
Sort: Trending