Whats wrong in code please make the changes

@neelrai906
change the return type of function from int to void.

its still wrong output

@neelrai906
See the output of your code for sample tescase. your code is giving “ad 9ae 9af 9bd 9be 9bf 9cd 9ce 9cf 9”. Comment out line 8 and print total sum after line 23

still not getting the output

@neelrai906
Maintain a global count, increment it whenever you reach basecase. Print count after calling function in main().

Mark it as resolved. If you have no more doubt. thanks

1 Like

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.