blackshadowhawk19641 blackshadowhawk19641
  • 21-06-2022
  • Computers and Technology
contestada

write an if/else statement that assigns true to the variable fever if the v ariable temperature is greater than 98.6

Respuesta :

ra7857 ra7857
  • 23-06-2022

Answer:

import java.util.Scanner;

class Main{

   public static void main(String[] args){

     double temp;

     Scanner scan = new Scanner (System.in);

     System.out.println("Enter the temperature, please: ");

     temp= scan.nextDouble();

     

     if (temp>=98.6){

       System.out.println("Fever.");

     }else{

       System.out.println("No Fever.");

     }      

   }

Answer Link

Otras preguntas

An adult with a BMI of 25 to 30 is considered, A. Healthy B. Underweight C. Obese D. Overweight
write two decimals one repeating and one terminating with values between 0 and 1 then write an inequality that shows the relationship between your two decimals
how do you say yes and no in german
An organism that produces its food by photosynthesis
List all the multiples of 4 up to 20
5w-14=8w+4 having trouble solving this equation
What hypotheses could you propose about the relationship between the position of a type of atom in a molecule and the number of bonds that the atom forms?
The Kentucky and Virginia Resolutions (1798) held that states could nullify the Alien and Sedition Acts because these laws (1) repealed the Northwest Ordinance
What is the value of the expression? –83 the three is an exponent
Why did England begin to heavily tax the colonies