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

Read the sentence. According to a study published in the American Bee Journal, pesticides can cause as much damage to bee hives as Varroa mites do. What type of
Which of the following factors affects the amount of heat absorbed by a substance?A. Boiling point of the substanceB. Specific heat capacity of the substance C.
what are conductors and insulators​
Sin x, cos x, tan x Can someone explain this please...
Oraciones con punto seguido y punto aparte
PLEASE HELP!! WILL MARK BRAINLIEST IF RIGHT!!! Identify the coordinates of the image. Figure A has coordinates of W(0, -5), X(9, 0), Y(6, -9), and Z(2, -6). Wha
Which type of body has a core made of ice, dust, and rock?A. stars B.meteors C. comets D. asteroids​
what is called renaicen
give at least four carriet out by the dhalang
1. For a(n) ecosystem to be healthy, it has to have lots of different kinds of plants and animals. 2. Name four types of ecosystems from those listed in the vid