Python Program to find Area of a triangle
Hint:
Area of traingle= 1/2bh
b=breadth of a triangle
h=height of a triangle
In this post we are going to find the area of a triangle. The python program for the area of a triangle is given below.
Input:
3 2
Output:
3
Explaination:
where breadth b = 3, h = 2
answer =1/2 * 3 * 2 = 6/2 = 3
Code:
b , h=map(int, input().split())
print((b * h) //2)
Note:
Hello Guys, Don't Stop Learning keep Going..............