Computer Science, asked by AryanKapoorLucknow, 5 months ago

Write an algorithm to enter three angles and check whether a triangle is possible or not. ( A triangle is possible if the sum of all the three angles is equal to 180​

Answers

Answered by RhitVrat
7

Answer:

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