Computer Science, asked by legend51, 5 months ago

write a function called calculate_area() that takes base and height as an input argument and returns an area of triangle as an output the formula used is:

Area of triangle=½*base*height​

Answers

Answered by sumanmohapatra2003
15

Explanation:

Python Program to find Area of a Triangle using base and height

base = float(input('Please Enter the Base of a Triangle: '))

height = float(input('Please Enter the Height of a Triangle: '))

# calculate the area

area = (base * height) / 2

print("The Area of a Triangle using", base, "and", height, " = ", area)

OUTPUT

Python Program to find Area of a Triangle using base and height 1

Similar questions