Advertisement
-and_

Untitled

Apr 8th, 2020
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6. Double x = scanner.nextDouble();
  7. Double y = scanner.nextDouble();
  8. Double x1 = scanner.nextDouble();
  9. Double y1 = scanner.nextDouble();
  10. Double x2 = scanner.nextDouble();
  11. Double y2 = scanner.nextDouble();
  12. if( (x1 == x2 && y1 < y && y < y2 ) || (y1 == y2 && x1 < x && x < x2 ))
  13. System.out.println("Inside/Outside");
  14. else
  15. System.out.println("Border");
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement