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

In a 30°-60°-90° triangle, the length of the hypotenuse is 30. Find the length of the longer leg.
write 5/3 as a mixed number
What is the expression x2-4 for a=b=3x=5 and y=4
Newborn human babies with lesser body weight are prone to infections. Heavier babies are difficult to deliver through the narrow pelvic passage of human mothers
Mandate of Heaven, production of silk, and reverence for ancestors are all characteristics associated with civilizations in (1) India (3) Greece (2) China (4) W
What is the value of the digit 9 in the number 913,256?
What is the answer 4b-7-15b+3
How to write 309,099,990 in word
what is the least 10 digit whole number? write the number in word form and in standard form
Newborn human babies with lesser body weight are prone to infections. Heavier babies are difficult to deliver through the narrow pelvic passage of human mothers