YavorGrancharov

Number100to200

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