input three angles to check whether a triangle os possible or not . print appropriate message.
Answers
Answered by
4
Explanation:
Approach: A triangle is valid if the sum of the three angles is equal to 180 degrees.
Answered by
5
[Following códe is written in python]
Required program :-
a = eval(input("Enter the first angle: "))
b = eval(input("Enter the second angle: "))
c = eval(input("Enter the third angle: "))
if (a+b+c)==180:
print("Yes,triangle is possible")
else :
print("No, triangle is not possible")
Output attached...★
Attachments:
Similar questions