Why is my code note working?
@Imsbajetha Firstly, you are not printing the final result in main.
Secondly, your recursive function is not correct.
Refer this code to understand:
https://ide.codingblocks.com/s/130971
Hope this helps
1 Like