plzzzz tell what is the mistake in this given code???/
Recursion = Replace all π
Hi @ashigupta.gupta570
Basically your function is not returning anything so you have to make that function to be void instead of int. And in case where you are checking str[i] and str[i+1] there after printing 3.14 you dont have to return.
I have made few changes in your code have a look.
1 Like