Advertisement
Mishakis

Between 100 and 200

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