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

Find the equation of the line which passes ​​​​​​through (0,7) at a gradient of 3​
what organelle of a cell connect the nucleus and cell membrane of the cell?​
Write an equation of a line passing through the point (-6,-3) and perpendicular to JK with J(-2,-7) and K(6,5). A) y = -2/3x – 4 B) y=-2/33-7 C) y = 2/3x + 1 D
The average of sixteen numbers was 25. After an extra number was included, the new average was 30. What was the 17th number?
A plane mirror forms virtual image​
Compare the 1830 and 1850 census information. What changes do you see? PLS HELP!!!
Describe how our body systems work together
HELPP!!! I have a root test for a series but it's in n/2 power, help me out please ?
How did mass production affect consumers?
QUESTION 24 What is a "push poli"? A) Opolitically biased campaign information presented as a poll in order to change minds B) a poll designed to show accurate