programming-examples/python/_Basics/Accept the base and height of a triangle and compute the area.py
2019-11-15 12:59:38 +01:00

6 lines
128 B
Python

b = int(input("Input the base : "))
h = int(input("Input the height : "))
area = b*h/2
print("area = ", area)