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

How do you solve 3/4n -18 = 1/4n -4
what is 30 less than 4 times a number is equal to 14
which is the highest mountain in the world
One serving of oatmeal provides 16% of the fiber you need daily. You must get the remaining 21 grams of fiber from other sources. How many grams of fiber should
K^2+5k-6=0 by the quadratic formula
Use prime factorization to find the GCF of 84 and 63
Diego's investment in a stock grew 28% to $448. how much did he invest?
Convert 35/20 into a decimal
Cedar Point Amusement Park charges $51.99 for an adult admission and $26.99 for a junior admission. One Thursday, the park collected $15,591.40 from a total of
Name the energy resource that involves extracting heat from rocks