Computer Science, asked by suvas561010, 2 days ago

write an algorithm to input three angles of a triangle and check the possibility of a triangle.​

Answers

Answered by cutegirl3786
2

Answer:

Logic to check triangle validity if angles are given

Logic to check triangle validity if angles are givenInput 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.

Answered by pranjalibhoir5
1

Answer:

logic to check triangle validity if angles are given

logic to check triangle validity if angles are giveninput all three angles of triangle in some variable say angle1 , angle2 and angle3 .

logic to check triangle validity if angles are giveninput 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 .

logic to check triangle validity if angles are giveninput 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