Computer Science, asked by Ayrak2, 8 months ago

WAP to input 3 sides of a triangle and check whether it forms a triangle. If it forms a triangle , check whether it is a scalene , isoceles or equilateral triangle.

Answers

Answered by KarthikKiran
2

Explanation:

a = eval(input(" Enter the first side:-"))

b = eval(input(" Enter the second side:-"))

c = eval(input(" Enter the third side:-"))

s = " Forms a Triangle!"

if a+b > c:

print(s)

if a == b and a ==c and b== c :

print (" It is an equilateral triangle)

elif a == b or b== c or a == c :

print (" it's an isosceles triangle")

else:

print("It's a scalene Triangle")

else:

print (" The sides doesn't form a triangle")

Answered by divyansh05887
0

Answer:

HERE IS YOUR ANSWER ...

Attachments:
Similar questions