stoyanoff

Number100_200_04

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