#include <iostream>
#include <cmath>
using std::cout;
using std::endl;
const double PI = 3.14;
double sphere_volume(const double r) {
return 4.0 / 3.0 * PI * pow(r, 3);
}
int main()
{
double radius = 5;
cout << "Volume of sphere = " << sphere_volume(radius) << endl;
}
/*
run:
Volume of sphere = 523.333
*/