- 龙凤苑中学A班4.12
圆面积(lfyA班4.17)
- @ 2024-4-16 21:09:08
#include<iostream>
#include<cmath>
#include <iomanip>
using namespace std;
int main(){
int r,a,b,c,d;
r=5;
a=3.141593;
b=2*a*r;
c=a*pow(r,2);
d=4/3*a*pow(r,3);
std::cout <<std::fixed << std::setprecision(3) << b<< std::endl;
cout<<c<<endl;
cout<<d<<endl;
return 0;
}
0 comments
No comments so far...