Computer Science, asked by Hulkkav, 1 month ago

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
rogue0409: Wait
rogue0409: Finally

Answers

Answered by rogue0409
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