12th Oct 2020, 4:50 PM
Satyam Mishra
Satyam Mishra - avatar
3 Antwoorden
+ 1
Recursion
12th Oct 2020, 5:25 PM
Shadoff
Shadoff - avatar
0
fact(3) first call with 3 3 + fact(3-1) second call with 2 3 + 2 + fact(2-1) third call with 1 3 + 2 + 2 + fact(1-1) in the function as the x==1 it will return 2 3 + 2 + 2 7
12th Oct 2020, 6:02 PM
Indranil
Indranil - avatar