Advertisement
Guest User

Number 100...200

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