+ 1
Isn't this just a reoccurring function called from within itself until a particular set of conditions are met? I don't know it just seems like shorthand to me. Like a do-while loop. I am sure it could be used for more than just factorials.
What is recursive?
2 Respuestas
+ 1
recursive functions are functions that call them selves until a surtain condition is met. You are right.
+ 3
Yap, they call themselves. Check this out.
https://code.sololearn.com/cTt83U8TQHK4/?ref=app