public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double bodyTemperature = scanner.nextDouble();
//write your code here
isHigh = (bodyTemperature > 37) ;
isLow = (bodyTemperature < 36) ;
if (isHigh) {
System.out.println("Body temperature is high");
} else if (isLow) {
System.out.println("Body temperature is low");
} else {
System.out.println("Body temperature is normal");
}
}
Solution
Under discussion
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet