20. Python Program to find Area of the Triangle using Base and Height values.
How does this program work?
- In this program you are going to learn about how to find out the Area of triangle using Python.
- In this program to take user inputs base and height values for the given Triangle.
- After that by using area of triangle formula we can get the Output.
Here is the code
b = int(input("Enter the base of a triangle: "))
h = int(input("Enter the height of a triangle: "))
area = (b*h)/2
print("Area of triangle is: ",area)