Advertisement
aneliabogeva

Untitled

Apr 9th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1.  
  2. x1 = float(input())
  3. x2 = float(input())
  4. y1 = float(input())
  5. y2 = float(input())
  6.  
  7. a = max(x1, y1) - min(x1, y1)
  8. b = max(x2, y2) - min(x2, y2)
  9.  
  10. area = a*b
  11. perimeter = 2*a + 2*b
  12.  
  13. print(int(area))
  14. print(int(perimeter))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement