Pythagoras theorem

i know the concept of pythagoras triplet but i am unable to write the code correctly ??help me to sort out the problem

you can read this doubt discussion Getting wrong answer to understand the approach. please try to write your own code before reaching to the final solution.

thanks