10. WAP to accept three angles of a triangle and check the triangle is valid or not. The triangle is valid if the total of three angle = 180 degrees.

Solution Of The Program -

If you want to see this solution:

Output-

Enter First Angle: 

Enter Second Angle: 

Enter Third Angle: 

Result: