Python Program to Calculate Area of a Triangle
To calculate area of a triangle we use the formula area=(base*length)/2
- #Python program to calculate area of a triangle
-
- b= float(input("Enter base: "))
- h= float(input("Enter height: "))
-
- area= (b*h)/2
-
- print("Area of the triangle = ", area)
Output

Solution not working or have any suggestions? Please send an email to [email protected]
Download Android App