Triangle or not triangle

Report a typo

Read three angles given on separate input lines and check whether they form a triangle. Print the answer in the following format: "The triangle is valid!" or "The triangle is not valid!".

Note that to form a triangle, each angle should be greater than 0 degrees.

Sample Input 1:

1
2
3

Sample Output 1:

The triangle is not valid!

Sample Input 2:

60
60
60

Sample Output 2:

The triangle is valid!
Write a program in Python 3





___

Create a free account to access the full topic