Sunday, June 18, 2023

Triangle area calculate program by one side and perpendicular height for this side

Code of program:

print("Calculate an area of a triangle by side and perpendicular height")
a=input("side a=")
a=float(a)
h=input("height h=")
h=float(h)
area=(a*h)/2
print("area=")
print(area)

No comments:

Post a Comment