Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x1 = float(input())
- x2 = float(input())
- y1 = float(input())
- y2 = float(input())
- a = max(x1, y1) - min(x1, y1)
- b = max(x2, y2) - min(x2, y2)
- area = a*b
- perimeter = 2*a + 2*b
- print(int(area))
- print(int(perimeter))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement