#include #include using namespace std; /* * main - demonstrates comments, identifiers, keywords, data types, */ int main() { const double PI = 3.14159; double radius; // computes the volume of a sphere given the radius cout << "Enter the radius of the sphere: "; cin >> radius; // Calculate volume and print result double volume = 4 * PI * radius * radius * radius / 3; cout << "The volume of the sphere of radius " << radius << " inches is " << volume << " cubic inches.\n"; // C-style printing printf("The volume of the sphere of radius %lf inches is %lf cubic inches.\n", radius, volume); return 0; }