//Area of Circle pi × radius2
#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
static double pi=3.1415926535;
int main()
{
double radius,temp,Ans;
cout<<"Enter Radius = ";
cin>>radius;
temp=radius*radius;
Ans=pi*temp;
cout<<"Area of Circle = "<<Ans;
getch();
}
0 Questions:
Post a Comment