Computer Science, asked by rajasribavani617, 11 days ago

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 vishalvishwakarma397
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 Girrishjain
1

Answer:

Hope this answer helps you.

Explanation:

Please mark me as brainliast.

Attachments:
Similar questions