A triangle is said to be an ‘Equable Triangle’ if the area of the triangle is equal to its perimeter. Write a python program to enter three sides of a triangle and print whether it is Equable or not python
rogue0409:
I know the answer but its not letting me send the answer with the somehow
Answers
Answered by
1
height = float(int(input("Enter the base: ")))
base = float(int(input("Enter the height: ")))
side_3 = float(int(input("Enter the third side: ")))
area = (height * base)/2
perimeter = height + base + side_3
if area == perimeter:
print('It is an equable triangle')
else:
print("It is not an equable triangle")
Similar questions