BbJLeB

03. Point in Rectangle

May 7th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 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 (x1 <= x) and (x <= x2) and (y1 <= y) and (y <= y2):
  9.     print("Inside")
  10. else:
  11.     print("Outside")
Advertisement
Add Comment
Please, Sign In to add comment