/* * This program computes the volume of a sphere * Input: The radius of the sphere. * Output: The volume of the sphere. * */ #include #include int main(void) { const double Pi = 3.14159; // Mathematical constant double radius; double volume; cout << "\n Please enter the radius of the sphere:"; cin >> radius; volume = 4.0 * Pi * pow(Radius, 3.0) / 3.0; cout << "\nvolume = " << volume << "\n\n"; exit(0); }