Write a program to design class triangle to input three angles for triangle (use Scanner) to classify the
triangle on basis of its angles if possible. A triangle is right angled if any one of its angle is 90, Acute
angle triangle if all of its angles are below 90 and Obtuse if any one of its angle is above 90.
Answers
Answered by
0
Answer:
Write a program to input three angles of a triangle and check whether a triangle is possible or not. If possible then check whether it is an acute-angled triangle, right-angled or an obtuse-angled triangle otherwise, display 'Triangle not possible'.
Sample Input: Enter three angles: 40, 50, 90
Sample Output: Right=angled Triangle
Explanation:
mark me brainlist
Similar questions