galinyotsev123

ProgBasics03Conditional-Statements-P06Number100200

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