Pythagoras triplet regarding approach

please consider my approach and give suggestion
my code is…


please help!!!

I would recommend you to go through the online video lecture given on pythagorean triplets hint video and try to implement that logic only…