➽ Program:-

x = float(input("Enter First Side: "))

y = float(input("Enter Second Side: "))

z = float(input("Enter Third Side: "))

 

# calculate semi-perimeter

S = (x+y+z)/2

 

# calculate area

Area = (S*(S-x)*(S-y)*(S-z))**0.5

 

print("Area of Triangle is",round(Area,2))

➽ Output:-

Enter First Side: 12
Enter Second Side: 13
Enter Third Side: 16

Area of Triangle is 76.69