If the squares of the two shorter sides add up to the square of the longest side, the triangle contains a right angle.