Problem Statement
Write a C program to check whether a triangle can be formed with the given values for the angles.
A triangle is valid if and only if the sum of its three interior angles equals exactly 180 degrees and each angle is greater than 0.
For example, if the input angles are 40, 55, and 65, the sum is 160, which is not equal to 180, so the triangle is not valid.