I was getting wrong answer then I corrected the positioning of the characters and now I am getting wrong answer for test case 2 please tell me the mistake

PROBLEM: Print all (a,b) such that a2+b2=A where a<b for t test cases
eg
1

100

(0,10) (6,8)

Hi @amangupta
There was just a single case that wasn’t included in your logic i.e when we input 0.
Refer the following code:

Hope this might helps :slight_smile:

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.