Write a conditional that assigns the boolean value true to the variable fever if the variable temperature is greater than 98.6.

Write a conditional that assigns the boolean value true to the variable fever if the variable temperature is greater than 98.6.

LANGUAGE: JAVA

CHALLENGE:

Write a conditional that assigns the boolean value true to the variable fever if the variable temperature is greater than 98.6.

SOLUTION:

if (temperature > 98.6) fever = true;

Add comment