+ 10
How recursion works in computer memory.đ
I know this is very complex but I will try to explain def h(x): if(x==1): return 1 else return x*h(x-1)# user input=4 4*h(3) #4Ă6, from line 9 3*h(2) #3Ă2, from line 10 2*1#because here if condition come from line 7 we got output our code=24 remember that in line 7,8,9 function are repeated remember that in recursion code move forward first,than backwork and give result our code.
1 Answer
+ 10
Nice, but in future don't post lessons here, we have lesson factory for that