Pythagorean triplet problem

https://ide.codingblocks.com/s/50456

how to proceed with this problem? only 1 test case is being passed

Hi Yukti, you are not applying the correct logic. A Pythagorean triplet consists of three positive integers a, b, and c, such that a^2 + b^2 = c^2. It is not necessary that if n is given, then the other two numbers will be n+1 and n+2.
Example, (12,35,37) is a pythagorean triplet because (12)^2 + (35)^2 = (37)^2