tempC cannot be <=20 && >30) at the same time, also, what happens if tempC = 36?
Did you mean:
if (tempC <=30 || tempC >=40){ ?
tempC cannot be <=20 && >30) at the same time, also, what happens if tempC = 36?
Did you mean:
if (tempC <=30 || tempC >=40){ ?