mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 19:55:17 +00:00
19 lines
467 B
Java
19 lines
467 B
Java
/* Lesson 3 Coding Activity Question 4 */
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class U3_L3_Activity_Four {
|
|
|
|
public static void main(String[] args) {
|
|
Scanner sc = new Scanner(System.in);
|
|
|
|
System.out.println("What is the temperature?");
|
|
double temp = sc.nextDouble();
|
|
|
|
if (temp >= 97 && temp <= 99) {
|
|
System.out.println("Temperature is OK");
|
|
} else {
|
|
System.out.println("NOT NORMAL");
|
|
}
|
|
}
|
|
}
|