#include #include using namespace std; //Create a macro named PI. No semicolon. #define PI 3.14159265358979 int main() { const double r {1.0}; //radius of circle and sphere cout << "Radius of circle = " << r << "\n"; //conditional compilation #ifdef PI cout << "Circumference of circle = " << 2 * PI * 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"; #endif return EXIT_SUCCESS; }