Computer Science, asked by rs04, 14 days ago

write a python programming to find area and perimeter of the triangle.​

Answers

Answered by MasterSolverX
0

Answer:

import math

side_1 = int(input("Enter length of side 1 : "))

side_2 = int(input("Enter length of side 2 : "))

side_3 = int(input("Enter length of side 3 : "))

perimeter = side_1 +side_2 + side_3

s = perimeter/2

area = math.sqrt(s*(s-side_1)*(s-side_2)*(s-side_3))

print("Perimeter = " + str(perimeter) + "\nArea = " + str(area))

Similar questions