Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Task10 {
- public static void main(String[] args) {
- int A, B, x, y, z;
- Scanner in = new Scanner(System.in);
- A = in.nextInt();
- B = in.nextInt();
- x = in.nextInt();
- y = in.nextInt();
- z = in.nextInt();
- if((A < x && B < y) || (A < x && B < z) || (A < z && B < y)) System.out.println("Пройдет");
- else System.out.println("Не пройдет");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement