+ 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?

28th Jun 2016, 10:39 PM
Matt Roberts
Matt Roberts - avatar
2 odpowiedzi
+ 1
recursive functions are functions that call them selves until a surtain condition is met. You are right.
2nd Jul 2016, 6:17 PM
Armandas Bolevičius
Armandas Bolevičius - avatar
+ 3
Yap, they call themselves. Check this out. https://code.sololearn.com/cTt83U8TQHK4/?ref=app
26th Jul 2018, 6:25 PM
Moses Odhiambo
Moses Odhiambo - avatar