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
12
Hello,
Checkif this helps you.
Thank You!!
:-D
Attachments:
Answered by
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