Advertisement
apez1

Term 1: Lesson 14 - Coding Activity 1

Sep 25th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1.  
  2.  
  3.     import java.io.*;
  4. import static java.lang.System.*;
  5. import java.util.Scanner;
  6. import java.lang.Math;
  7.  
  8. public class Lesson_14_Activity_One {
  9.       public static void main (String str []) throws IOException {
  10.    
  11.      Scanner scanner = new Scanner(System.in);
  12.  
  13.      int z;  
  14.      System.out.println("Enter an integer.");  
  15.      z = scanner.nextInt();
  16.      
  17.      if( !(z < 5) && !(z > 76))  {
  18.       System.out.println("False");
  19.      }
  20.      else {
  21.       System.out.println("True");
  22.  
  23.      }
  24.      
  25.        
  26.       }
  27.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement