哪错了

lhy276 2025-04-20 12:03:47 3

#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; }

{{ vote && vote.total.up }}

共 1 条回复

root 站长

Area = 这个内容要加 双引号,比如输出 hello,world要写成 cout << "hello,world";