area of a right angle triangle in python code example
Example: area of a right angle triangle in python
h = int(input("Enter the height of the triangle"))
b = int(input("Enter the base of the triangle"))
A = 0.5 * b * h
print("Area is: ", (A))
h = int(input("Enter the height of the triangle"))
b = int(input("Enter the base of the triangle"))
A = 0.5 * b * h
print("Area is: ", (A))