+ 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 Réponse
+ 10
Nice, but in future don't post lessons here, we have lesson factory for that