Sunday, June 18, 2023

Trapezoid area calculate program

Code of program:

print("Calculate trapezoid area")
a=input("side a=")
a=float(a)
b=input("side b=")
b=float(b)
h=input("height of trapezoid h=")
h=float(h)
area=(a+b)*h/2
print("trapezoid area=")
print(area)

No comments:

Post a Comment