Pythagoras triplet
hello @rahulkumarraj220
a)

this is not correct, u cannot return more than one value from the function.
b) for n<=2
answer should be -1.
pls refer this->
any other way to write this code?
return pair of double…from u functions.
and then print them
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.