Pythagoras triplet qstn

I have done according to the hint provided.But not getting correct results…Help me.

Please check the comments in the above code. It’s a simple code that can be done by using just 3 simple if, if-else conditions.

Please tell me where i am doing wrong?
what is wrong in the approach.
please explain clearly.


Check the comments in the above code for more Clarity

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.