ofekkfir

exercise 3

Oct 22nd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class targil3
  5. {
  6.     static Scanner reader = new Scanner(System.in);
  7.  
  8.     /**
  9.      * @param args
  10.      */
  11.     public static void main(String[] args)
  12.     {
  13.         int zion;
  14.         System.out.println ("enter grade");
  15.         zion = reader.nextInt();
  16.         if ( zion == 100) {
  17.             System.out.println("grade is 100");
  18.         }
  19.         if (zion <= 80) {
  20.             System.out.println ("grade is below or equals to 80");
  21.         }
  22.  
  23.     }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment