Advertisement
Spocoman

01. Trapeziod Area

Dec 8th, 2021
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. b1 = float(input())
  2. b2 = float(input())
  3. h = float(input())
  4. result = (b1 + b2) * h / 2
  5. print(f'{result:.2f}')
  6.  
  7.  
  8. Тарикатско решение:)
  9.  
  10. print(f'{(float(input()) + float(input())) * float(input()) / 2:.2f}')
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement