球的体积
This commit is contained in:
parent
af56d2a251
commit
5a6a417616
|
@ -0,0 +1,13 @@
|
|||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
const double pi = 3.14159;
|
||||
|
||||
int main()
|
||||
{
|
||||
int R;
|
||||
cin >> R;
|
||||
printf("VOLUME = %.3lf", (4 / 3.0) * pi * R * R * R);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue