Some test cases not passed

Pythagoras Triplet
https://ide.codingblocks.com/s/51313

Hey Shubham, you made just a small mistake, as if(n%2==0) check should not be an if check it should be an else if check so, update it like this else if(n%2==0), to understand why so check your code’s output for input 1. One more thing is triplets could be large numbers so use long long int data type instead of int.