Decode School

Decode School - The School for Problem Solvers
Welcome to My Blog.
Need Assignment / Project Guidance (or) Training in Python?

Area of triangle in Python

Python program to get base width and height of triangle and find area of triangle

Sample Input 1:

4 5

Sample Output 1:


Program or Solution

b=int(input("Enter the base:"))
h=int(input("Enter the height:"))
print("Area: {}".format(area))


Program Explanation

get height and base of a triangle using input() method calculate area = height * base