fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main () {
  4. int suhu;
  5. cin >> suhu;
  6. cout << "Status Suhu :";
  7. if (suhu <= 50) {
  8. cout << "NORMAL";
  9. }
  10. else if (suhu <= 70) {
  11. cout << "WARNING";
  12. }
  13. else if (suhu <= 80) {
  14. cout << "HIGH";
  15. }
  16. else {
  17. cout << "OVERHEAT"; }
  18. return 0;
  19. }
Success #stdin #stdout 0s 5308KB
stdin
80
stdout
Status Suhu :HIGH