Write a Python program that will accept the base and height of a triangle and compute its area.
1 2 3 4 5 6 |
b = int(input("Input the base : ")) h = int(input("Input the height : ")) area = b*h/2 print("area = ", area) |
1 2 3 4 5 6 |
b = int(input("Input the base : ")) h = int(input("Input the height : ")) area = b*h/2 print("area = ", area) |