Advertisement
GalinaKG

Untitled

May 10th, 2022
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. x1 = float(input())
  2. y1 = float(input())
  3. x2 = float(input())
  4. y2 = float(input())
  5. x = float(input())
  6. y = float(input())
  7.  
  8. if x == x1 and y >= y1 and y <= y2:
  9. print("Border")
  10. elif x == x2 and y >= y1 and y <= y2:
  11. print("Border")
  12. elif y == y1 and x >= x1 and x <= x2:
  13. print("Border")
  14. elif y == y2 and x >= x1 and x <= x2:
  15. print("Border")
  16. else:
  17. print("Inside / Outside")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement