Above Doubt A = a**2 + b**2

I have done this question and I have the code below:

In this code, my logic is fine as one Test case is coming correct I have tried 25 times but I cannot find why my other Test code is the wrong answer or run error.

Please Help
Thank You!

Hi @sarthakagg105
There was just a single case that wasn’t included in your logic i.e when we input 0

Hope this might help :slightly_smiling_face:

thank you so much! I was doing this for days

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.