I know this is not giving correct output, But Please tell me Why it is not giving correct output.
Please help me for this.
Please tell me doubt
hey @cbcao263 since you have to print the pairs in increasing order j should start from i+1 not n-1 and you don’t need to manually increment i or j the for loop will do that itself
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.