0 votes
in Java by (1.4k points)

Write a java program to get tempreture value from the keyboard and use IF-ELSE Statement to check whether the temepreture is greater than 37 degree celsius.

Instructions

  • Use scanner class to accept string from the keyboard.
  • Use nextInt() method to accept temepreture value from the keyboard.
  • use if-else statement to check whether the tempereture is greater than 37 degree Celsius
  • If value is greater than 37, Print the message - 'It is Fever'
  • else print - 'No Fever'
Example Output:
Custom input: 5
No Fever
Custom Input: 37
No Fever
Custom Input: 38
It is a Fever

Please log in or register to answer this question.

Welcome to Mcqbuddy Q&A, where you can ask questions and receive answers from other members of the community.
...