Advertisement
DanikYakush

Task10

Jul 2nd, 2022
711
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Task10 {
  4.     public static void main(String[] args) {
  5.         int A, B, x, y, z;
  6.         Scanner in = new Scanner(System.in);
  7.         A = in.nextInt();
  8.         B = in.nextInt();
  9.         x = in.nextInt();
  10.         y = in.nextInt();
  11.         z = in.nextInt();
  12.         if((A < x && B < y) || (A < x && B < z) || (A < z && B < y)) System.out.println("Пройдет");
  13.         else System.out.println("Не пройдет");
  14.     }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement