deyanivanov966

04. Number 100...200

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