write a python program using class to accept three sides of triangle and print its area.
please answer as soon as possible
Answers
Answered by
1
Answer:
import math
a=int(input("Enter first side: "))
b=int(input("Enter second side: "))
c=int(input("Enter third side: "))
s=(a+b+c)/2
area=math.sqrt(s*(s-a)*(s-b)*(s-c))
print("Area of the triangle is: ",round(area,2))
Answered by
1
Answer:
Hope this answer helps you.
Explanation:
Please mark me as brainliast.
Attachments:
Similar questions