Pergunta de entrevista da empresa Infinidat

given 3 integers determine what kind of triangle those 3 length represents. test your code

Resposta da entrevista

Sigiloso

7 de nov. de 2020

assuming a, b and c are the integers representing the sides of the triangle then 1) find the longest side, lets assume it's c, 2) if a^2 + b^2 = C^2 : the triangle is a right triangle. if a^2 + b^2 > C^2 : the triangle is an acute triangle. if a^2 + b^2 < C^2 : the triangle is an obtuse triangle.