programming-examples/python/Basics/Accept the base and height of a triangle and compute the area.py
2019-11-18 14:44:36 +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)