output of a program to enter three angles of a triangle and acheck whether a triangle
Answers
Answered by
2
Answer:
Logic to check triangle validity if angles are given
Input all three angles of triangle in some variable say angle1 , angle2 and angle3 . Find sum of all three angles, store sum in some variable say sum = angle1 + angle2 + angle3 . Check if(sum == 180) then, triangle can be formed otherwise not.
Similar questions
History,
1 month ago
Math,
3 months ago
English,
3 months ago
Computer Science,
10 months ago
English,
10 months ago