Find Area of Circle in C++

in #programming6 years ago

#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

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63004.58
ETH 2548.62
USDT 1.00
SBD 2.81