Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def P():
- f = int(input("Основание 1: "))
- g = int(input("Основание 2: "))
- h = int(input("Высота: "))
- P = f + g + 2 * (h ** 2+(f-g) ** 2 / 4) ** 0.5
- print("Периметр равнобедренной трапеции равен ", int(P))
- return P
- P1 = P()
- P2 = P()
- Sum = P1 + P2
- print("Сумма периметров двух трапеций равна", int(Sum))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement