Dsa
Math
Medium
Pythagorean Triples Checker
You need to determine if three given integers can form the sides of a right triangle according to the Pythagorean theorem. A right triangle satisfies a^2 + b^2 = c^2 for some permutation of the sides. Input consists of three integers, each on a new line. Output 'Yes' if they can form a right triangle, and 'No' otherwise.
Example Input:
3
4
5
Example Output:
Yes
Key concepts
pythagorean theoremtrianglesmathematics
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now