`a`

,`b`

,`c`

are the length of the sides, then you have to use the triangle inequality (see Triangle inequality - Wikipedia[^]) in order to estblish if they form a triangle.Similarly, you have a right triangle if

z^2 = x^2 + y^2holds, where

z = max{a,b,c}

and

`{x,y}`

are the remaining lengths.