Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #x1, y1, x2, y2, x и y
- x1 = float(input())
- y1 = float(input())
- x2 = float(input())
- y2 = float(input())
- x = float(input())
- y = float(input())
- check1 = (x == x1 or x == x2) and (y1 <= y <= y2)
- check2 = (y == y1 or y == y2) and (x1 <= x <= x2)
- if check1 or check2:
- print('Border')
- else:
- print('Inside / Outside')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement