- Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathboolean29.java
23 lines (22 loc) · 669 Bytes
/
boolean29.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
importjava.util.Scanner;
publicclassboolean29 {
publicstaticvoidmain(String[] args) {
intx,y,y1,x1,y2,x2;
Scannerscanner=newScanner(System.in);
booleanm;
System.out.println("x");
x= scanner.nextInt();
System.out.println("y:");
y= scanner.nextInt();
System.out.println("x1:");
x1=scanner.nextInt();
System.out.println("y1:");
y1=scanner.nextInt();
System.out.println("x2:");
x2= scanner.nextInt();
System.out.println("y2");
y2= scanner.nextInt();
m=((x>x1) && (x2>x) &&(y1>y) && (y>y2));
System.out.println(m);
}
}