Math, asked by toantinhlau37731, 1 year ago

in python write a program to input length of three sides of a triangle. Then check if these sides will format a triangle or not (Rule is:a+b>c;b+c>a;c+a>b)

Answers

Answered by sahilshenoy3
12

Hello,

Checkif this helps you.

Thank You!!

:-D

Attachments:
Answered by sarkarchanchal200
7

Answer:

a=float(input("Enter first length : "))

b=float(input("Enter second length : "))

c=float(input("Enter third length : "))

if (a+b>c) and (b+c>a) and (c+a>b):

   print("Triangle formed")

else:

   print("Not triangle formed")

Step-by-step explanation:

Similar questions