#include<iostream>
using namespace std;
int main() {
double sphereRadius;
double piVal = 3.141592;
cin >> sphereRadius;
double r3 = sphereRadius * sphereRadius * sphereRadius;
double sphereVolume = (4.0 / 3.0) * piVal * r3;
cout << sphereVolume;
return 0;
}
Comments
Leave a comment