Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class PointInFigure {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int x = Integer.parseInt(scanner.nextLine());
- int y = Integer.parseInt(scanner.nextLine());
- if ((x>= 2 && x<= 12 && y>= -3 && y<=1)
- || (x >= 4 && x<=10 && y>= -5 && y<=3)) {
- System.out.println("in");
- } else {
- System.out.println("out");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement