Write a C++ program to input the angles of a triangle and check whether the 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. 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

 

 

Latest posts by Prof. Fazal Rehman Shamil (see all)

Buy advertisement space on T4Tutorials

For more details email [email protected]