martinvalchev

Number100_200

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