zhege122 @ 2024-11-03 17:31:53
#include <bits/stdc++.h>
using namespace std;
const double PI = 3.141593;
int main() {
double r = 5;
double C = 2 * r * PI;
double S = PI * pow(r, 2);
double V = (4 / 3) * PI * pow(r, 3);
cout << C << endl;
cout << S << endl;
cout << V << endl;
return 0;
}
by Martin0310 @ 2024-11-03 17:42:55
@zhege122
double V = (4 / 3) * PI * pow(r, 3);
中把
by zhege122 @ 2024-11-03 17:45:35
@Martin0310 好的,太感谢了!!!已关
by SuperAlex4 @ 2024-11-03 18:02:12
@Martin0310 向零取整*