Advertisement
ydpetkov

trapezoid_area

Jul 13th, 2022
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. b1 = float(input())
  2. b2 = float(input())
  3. h = float(input())
  4.  
  5. trapezoid_area = (b1 + b2) * h / 2
  6.  
  7. print(f'{trapezoid_area:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement