python program accept three side of triangle and find area of a triangle

Programming Example

WAP to accept 3 side of triangle and find area of a triangle.

Solution

import math
a=int(input("Enter side 1 of triangle : "))
b=int(input("Enter side 2 of triangle : "))
c=int(input("Enter side 3 of triangle : "))
s=(a+b+c)/2
area=s*math.sqrt((s-a)*(s-b)*(s-c))
print("Area of Triangle is : ",area)
Output