📜  验证它是否是三角形的公式 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:39.884000             🧑  作者: Mango

代码示例1
Formula : any of 2 side is must be bigger than the third side.

suppose, x = side1, y = side2, z = side3 of a triangle.
here are the steps to check that if it's a triangle. If all the condition become
true than it's a triangle otherwise not.
1. x + y > z.
2. x + z > y.
3. z + y > x.