I am not able to solve it i don't know why?

i applied the concept but not able to understand how to apply if else in this problem

hello @architsuryavanshi
pls refer this code-> https://ide.codingblocks.com/s/233367

for logic refer this-> https://www.hackerrank.com/challenges/pythagorean-triple/editorial

Sir in your code one test case is not passing i.e testcase 0 why??

i havent checked the code by submitting it.
logic is same u can modify it accordingly.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.