Computer Science, asked by ankit5873, 3 months ago

output of a program to enter three angles of a triangle and acheck whether a triangle​

Answers

Answered by vasukaushik26
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