Write a program in java to accept three sides of triangle and check whether the triangle is possible or not. If possible classify it as scalene,isosceles or equilateral triangle
Answers
Answered by
0
Answer:
To determine if 3 side lengths are a triangle, use the triangle inequality theorem, which states that the sum of 2 sides of a triangle must be greater than the third side. Therefore, all you have to do is add together each combination of 2 sides to see if it's greater than the third side.
Explanation
i hope it is use full to you all
Similar questions