+ 1

Help me undetstand why its a loop plz

https://code.sololearn.com/ce3DgN83X3jc/?ref=app

11th Apr 2020, 7:18 AM
עומר גניש
4 Respostas
+ 3
It is not a loop. It is a recursive. Take a paper and a pencil and follow line by line. Most learner are excited once they understood. It is worth the effort!
11th Apr 2020, 7:25 AM
Oma Falk
Oma Falk - avatar
+ 2
עומר גניש It's a factorial using recursion so here answer will come 120. 5! = 120 5 * 4 * 3 * 2 * 1 = 120
11th Apr 2020, 11:26 AM
A͢J
A͢J - avatar
0
I don't understand why it doesn't outputing 20 and end there
11th Apr 2020, 7:21 AM
עומר גניש
0
help me undetstand it
11th Apr 2020, 7:35 AM
עומר גניש