Advertisement
DanikYakush

Task6

Jul 1st, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Task6 {
  4. public static void main(String[] args) {
  5. int x, y;
  6. Scanner in = new Scanner(System.in);
  7. x = in.nextInt();
  8. y = in.nextInt();
  9. if(x > 4 || x < -4) {
  10. System.out.println("false");
  11. return;
  12. }
  13. if(y > 4 || y < -3){
  14. System.out.println("false");
  15. return;
  16. }
  17. System.out.println(true);
  18. }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement