问题描述
龙湖校区有一个圆形花坛,量得花坛周围的篱笆长是 xx 米,请问该花坛的面积是多少平方米?(假设π=3.14π=3.14)。(5.2.99)
输入
一个小数 xx。
输出
花坛的面积(结果保留 22 位小数)
#include <iostream>
#include<iomanip>
using namespace std;
int main()
{
int m,n,a,b;
double d,r;
cin>>d;
r=d/(3.14*2);
cout<<fixed<<setprecision(2)<<3.14*r*r;
}