programming-examples/python/_Basics/Accept the base and height of a triangle and compute the area.py

6 lines
128 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
b = int(input("Input the base : "))
h = int(input("Input the height : "))
area = b*h/2
print("area = ", area)