Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import static java.lang.System.*;
- import java.util.Scanner;
- import java.lang.Math;
- public class Lesson_13_Activity_Six {
- public static void main (String str []) throws IOException {
- Scanner scanner = new Scanner(System.in);
- double z;
- System.out.println("What is the temperature?");
- z = scanner.nextDouble();
- if(z < 99.0 || z > 102.0) {
- System.out.println("WARNING");
- }
- else {
- System.out.println("Temperature is OK");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement