Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Task6 {
- public static void main(String[] args) {
- int x, y;
- Scanner in = new Scanner(System.in);
- x = in.nextInt();
- y = in.nextInt();
- if(x > 4 || x < -4) {
- System.out.println("false");
- return;
- }
- if(y > 4 || y < -3){
- System.out.println("false");
- return;
- }
- System.out.println(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement