Why this is not working


It is not giving correct output, Please tell Why
Please only tell the error

@cbcao263
Use i+1 instead of i++ and j+1 instead of j++.

Sir, What’s the issue in using that as both have same meanning and both will do the same work.

@cbcao263
They are not the same. i++ increments the value of i but before doing that , the current value of i is passed to the recursive call.
Using i+1 passes the increment value of i to the recursive call.