Before going out, check the weather: if the chance of rain (0 to 100) is 50 or more, take an umbrella. Write need_umbrella(rain_chance) to return true if you need one and false if not.
need_umbrella(80)→Trueneed_umbrella(10)→Falsebool need_umbrella(int rain_chance)#include <stdbool.h>
bool need_umbrella(int rain_chance) {
// your code here: if the chance is 50 or more, return true
return false;
}
Run tries the examples. When they look right, Submit.