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

Potatoes were not initially grown in Europe; however, they became a staple part of the European diet by the end of the eighteenth century. Which two factors are
Each phrase from this section of the declaration of independence begins with the word 'for', which is referring to the actions of a.parliament. b.king george ii
What is 1/8y+17+2y-118 please
which of these is an example of cyberbullying ?
how do you know if the website is secure if you make a purchase
Cr2 (SO4)3 is known as:-
"The Ruin" poem. Quote the lines that describe the decline and fall of the city.
Why did some people want to reform the Catholic Church in the 1400s? CHOICES: A. They believed that the church had moved away from its core teachings and beco
what is the area of the circle below if it is 18 m
How to do distributive property