Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class NumberInRange100to200 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- //цяло число -> int -> вход
- //< 100 -> Less than 100
- //<= 200 -> Between 100 and 200
- //> 200 -> Greater than 200
- int number = Integer.parseInt(scanner.nextLine());
- if(number < 100){
- System.out.println("Less than 100");
- } else if(number <= 200) {
- System.out.println("Between 100 and 200");
- } else {
- System.out.println("Greater than 200");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment