Find Area of Circle in C++

in #programming7 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.28
TRX 0.21
JST 0.039
BTC 97208.32
ETH 3709.85
USDT 1.00
SBD 3.93