Does A need to be a perfect square in this problem to yield a sequence of pairs (10 = 12 + 32 so will not have the (0,A) pair but will have (1,3))
Does A need to be a perfect square?
Hello @f20170996p_e4967119a6d58d1c,
No A does not need to be perfect square you need to print all the pairs whose sum square sums to A.
Like 25=3^2 + 4^2=9 + 16 and 5^2 + 0^2
Yes like 10= 3^2 + 1^2=9 + 1 but now it will have only one pair as answer as A which is 10 is not a perfect score the number itself whose square is A and 0 can’t be answer.
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.