Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- Double x = scanner.nextDouble();
- Double y = scanner.nextDouble();
- Double x1 = scanner.nextDouble();
- Double y1 = scanner.nextDouble();
- Double x2 = scanner.nextDouble();
- Double y2 = scanner.nextDouble();
- if( (x1 == x2 && y1 < y && y < y2 ) || (y1 == y2 && x1 < x && x < x2 ))
- System.out.println("Inside/Outside");
- else
- System.out.println("Border");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement