Python Program to Find Area of Isosceles Triangle

Python Program to Find Area of Isosceles Triangle

Write Python Program to Find Area of Isosceles Triangle

# Python Program to Find Area of Isosceles  Triangle

import math as mt

# get the value of two sides of isoseles triangle
a = float(input("Enter Length of Isosceles Triangle's Same Sides :--> "))
b = float(input("Enter Length of Isosceles Triangle's Third Sides :--> "))

# formula to find the area of the Isosceles triangle
area = (b * mt.sqrt((4 * a * a) - (b * b)))/4

print("The Area of the Isosceles Triangle :--> ", area)

Output:

Enter Length of Isosceles Triangle's Same Sides :--> 6
Enter Length of Isosceles Triangle's Third Sides :--> 6

The Area of the Isosceles Triangle :-->  15.588457268119896