i am having trouble understanding this example. I cant figure out what actually happens after a certain point.
Here is the code, the result is supposed to be 4.
Here from code, recursion(1) = 3 and i/2 when i>1 , 9/2 = 4 (since int as parameter)
recursion(1) = 3
i/2
i>1
9/2 = 4
The base condition of this recursive function is when i = 1
i = 1