Skip to content

Commit

Permalink
feat(3.3.4): Finished U3_L3_Activity_Four
Browse files Browse the repository at this point in the history
  • Loading branch information
101zh committed Oct 10, 2023
1 parent 853afdd commit c859dfd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/java/Unit3/U3_L3_Activity_Four.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package Unit3;

import java.util.Scanner;

public class U3_L3_Activity_Four {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("What is the temperature?");
double temp = scanner.nextDouble();

if (!(temp >= 97.0 && temp <= 99.0)) {
System.out.println("NOT NORMAL");
} else {
System.out.println("Temperature is OK");
}

scanner.close();
}
}

0 comments on commit c859dfd

Please sign in to comment.