#include #include //for the i/o manipulator setprecision #include #include //for the function pow using namespace std; //Define this macro only when running on high-precision hardware. #define HIGH_PRECISION #ifdef HIGH_PRECISION const double pi {3.141592653589793}; #else const double pi {3.14159}; #endif int main() { const double r {1.0}; //radius of circle cout << "Circumference of circle = " << pi * 2 * r << "\n"; cout << "Area of circle = " << pi * r * r << "\n"; cout << "Surface of sphere = " << 4 * pi * r * r << "\n"; cout << "Volume of sphere = " << 4 * pi * r * r * r / 3 << "\n"; return EXIT_SUCCESS; }