fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double temperature;
  6. cout << "Enter temperature: ";
  7. cin >> temperature;
  8.  
  9. if (temperature > 37.0) {
  10. cout << "High temperature" << endl;
  11. } else if (temperature == 37.0) {
  12. cout << "Normal temperature" << endl;
  13. } else {
  14. cout << "Low temperature" << endl;
  15. }
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Enter temperature: Low temperature