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 x1 = Double.parseDouble(Scanner.nextLine());
- double y1 = Double.parseDouble(Scanner.nextLine());
- double x2 = Double.parseDouble(Scanner.nextLine());
- double y2 = Double.parseDouble(Scanner.nextLine());
- double x = Double.parseDouble(Scanner.nextLine());
- double y = Double.parseDouble(Scanner.nextLine());
- if(((x==x1 || x==x2) && (y>=y1 && y<=y2)) || ((y==y1 || y==y2) && (x>=x1 && x<=x2))){
- System.out.println("Border");
- }else {
- System.out.println("Inside / Outside");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement