Advertisement
desislava_topuzakova

Untitled

May 7th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class LessBetweenMoreThan {
  4. public static void main(String[] args) {
  5. Scanner scanner= new Scanner(System.in);
  6. int a = Integer.parseInt(scanner.nextLine());
  7. if (a<100) System.out.println("Less than 100");
  8. else if (a<=200 && a>= 100) System.out.println("Between 100 and 200");
  9. else if (a>200) System.out.println("Greater than 200");
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement