Python Program to Calculate Area of a Triangle

To calculate area of a triangle we use the formula area=(base*length)/2

  1. #Python program to calculate area of a triangle
  2. b= float(input("Enter base: "))
  3. h= float(input("Enter height: "))
  4. area= (b*h)/2
  5. print("Area of the triangle = ", area)

Please click on the like button if it worked

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

Join Our Facebook Group

Share this example

Download Android App is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube