Write a program in C++ to input any three angles and to print whether a triangle is possible with those angles or not.
Answers
Answered by
1
Input all three angles of triangle in some variable say angle1 , angle2 and angle3 . ... Check if(sum == 180) then, triangle can be formed otherwise not. In addition, make sure angles are greater than 0 i.e. check condition for angles if(angle1 > 0 && angle2 > 0 && angle3 > 0) .
Answered by
0
Please mark as brainliest and follow me I had also followed you
Similar questions
CBSE BOARD X,
4 months ago
Chemistry,
4 months ago
Hindi,
4 months ago
Math,
9 months ago
Social Sciences,
9 months ago
Math,
1 year ago