what output does the following code display
double temperature =50;
if (temperature >=100)
system.out.println(“too hot”);
elseif (temperature <=40)
system.out.println(“too cold”);
else
system.out.println(“just right”);
Answers
Answered by
4
OUTPUT :
just right
REASON :
if (temperature >= 100)
= 50 >= 100
= false
else if (temperature <= 40)
= 50 <= 40
= false
else
= true
Similar questions