Kodewick
Start learning →
Starter←→0 / 86

Weather Note

#071Starterif (temp > 30)3 min

A phone shows a weather note. Over 30 degrees it says Drink water!, otherwise Nice day. Today it is 32.

Should show
Drink water!
main.cpp
#include <iostream>
using namespace std;

int main() {
    int temp = 32;
    // your code here: over 30, say drink water; otherwise say nice day
    return 0;
}
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.