Sofya_Soloveva_

Untitled

Jul 13th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. def per():
  2.     a = int(input())
  3.     b = int(input())
  4.     h = int(input())
  5.     c = (h**2+((b-a)/2)**2)**0.5
  6.     P = a + b + 2*c
  7.     return P
  8. print(per()+ per())
Advertisement
Add Comment
Please, Sign In to add comment