// class4demo_if_statements.cpp #include #include using namespace std; int main() { double majorRadius = 0.0; double minorRadius = 0.0; double answer = 0.0; cin >> majorRadius >> minorRadius; answer = 2 * 3.14 * sqrt((pow(majorRadius, 2) + pow(minorRadius, 2)) / 2); if (answer > 10) { if (answer > 50) { cout << "That's a REALLY big circumference" << endl; } else { cout << "That's big but not really big" << endl; } } /* if (!(answer > 10)) { cout << "That is a small circumference" << endl; } if (answer > 10) { cout << "My that's a big circumference " << answer << endl; cout << "goodbye" << endl; } else if (answer < 10 && answer >= 0 && answer != 5) { cout << "My that's a small circumference " << answer << endl; cout << "goodbye" << endl; } else if (answer < 0) { cout << "My that's impossible. Are you sure? " << answer << endl; cout << "goodbye" << endl; } else { cout << "Call tech support if you see this message" << endl; } */ /* if (answer > 10) { cout << "My that's a big circumference " << answer << endl; cout << "goodbye" << endl; } else { cout << "My that's a small circumference " << answer << endl; cout << "goodbye" << endl; } */ // < > <= >= == return 0; }// end of main