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-18 14:44:36 +01:00
b = int(input("Input the base : "))
h = int(input("Input the height : "))
area = b*h/2
print("area = ", area)