#include #include using namespace std; #define PI 3.1415926535897932385 #define CIRCLEAREA(x) (PI*(x)*(x)) #define CIRCLEDIAMETER(x) (2*(x)) #define CIRCLECIRCUMFERENCE(x) (2*PI*(x)) int main() { double radius; cout.setf(ios::fixed | ios::showpoint); cout.width(10); cout.precision(10); cout << "Enter A Radius: "; cin >> radius; cout << "radius = " << radius << endl; cout << "diameter = " << CIRCLEDIAMETER(radius) << endl; cout << "circumf. = " << CIRCLECIRCUMFERENCE(radius) << endl; cout << "area = " << CIRCLEAREA(radius) << endl; system("pause"); return 0; }