Advertisement
tchenkov

L03u10_NumberRange

Jan 18th, 2017
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /*
  4.  * Created by todor on 18.01.2017 г..
  5.  */
  6. public class u10_NumberRange {
  7.     public static void main(String[] args) {
  8.  
  9.         Scanner scan = new Scanner(System.in);
  10.  
  11.         int num = Integer.parseInt(scan.nextLine());
  12.  
  13.         if (num < 100){
  14.             System.out.println("Less than 100");
  15.         }
  16.         else if (num > 200){
  17.             System.out.println("Greater than 200");
  18.         }
  19.         else {
  20.             System.out.println("Between 100 and 200");
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement