入门训练 BEGIN-3 圆的面积

#include <iostream>
#include <math.h>
#include <iomanip> 
using namespace std;

int main() {
    
    double PI = atan(1.0)*4;
    double r;
    cin>>r;
    
    cout << fixed << setprecision(7)<<PI*r*r;
    return 0; 
}

猜你喜欢

转载自www.cnblogs.com/ZCWang/p/12173380.html