write an algorithm to input three angles of a triangle and check the possibility of a triangle.
Answers
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.
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.