Pythagoras triplet

Leg means either of height or length of the triangle?
And if so if input is 12 whether we have to print 5,12,13 or 12,35,37, which one is correct.

@Himanshu-Sajwan-2271264282963988 hey himanshu logic of this problem is very easy and it all about if you give value to your program it will give you remaining two arguments which satisfy the formula of aa+bb=c*c

i am successfully getting all the triplets but for first two test cases its showing wrong answer.

@Himanshu-Sajwan-2271264282963988 share your code here so that I can help you out