#include <bits/stdc++.h>
using namespace std;
int main() {
double r, h, v;
const double pi = acos(-1.0);
cin >> r >> h;
v = pi * (r * r) * 2 + 2 * pi * r * h;
cout <<Area = 274.889<<fixed<< setprecision(3) << v; }
Area = 这个内容要加 双引号,比如输出 hello,world要写成 cout << "hello,world";
共 1 条回复
Area = 这个内容要加 双引号,比如输出 hello,world要写成 cout << "hello,world";