Submit Time:2024-03-24 22:04:31

运行 ID: 44010

#include<bits/stdc++.h> using namespace std; int main(){ double r=3.0,d,C,S; //r是半径,d是直径,C是周长,S是面积 d=2*r; C=2*3.14159*r; S=3.14159*r*r; printf("%.4lf,%.4lf,%.4lf",d,C,S); }