Write a C++ program to input the angles of a triangle and check whether the triangle is valid or not

By: Prof. Dr. Fazal Rehman | Last updated: March 3, 2022

Write a C++ program to input the angles of a triangle and check whether the triangle is valid or not. You need to use the switch statement.

Flowchart to check that triangle is valid or not

Write a C++ program to input the angles of a triangle and check whether the triangle is valid or not

C++ code to get the angles of a triangle and show that the triangle is valid or not

Output

enter angle1 of triangle 33

enter angle2 of triangle 44

enter angle3 of triangle 66

the triangle is not valid

SFT (Shamil’s Flow Table )

Are you interested to Read about SFT(Shamil’s Flow Table)?

Explained program of angles of a triangle is valid or not

 

 

Leave a Comment

All Copyrights Reserved 2025 Reserved by T4Tutorials