0

i dont get it

int factorial(int n) { if (n==1) { return 1; } else { return n * factorial(n-1); } }

12th Nov 2018, 12:28 PM
prod.rai
prod.rai - avatar
1 Odpowiedź
+ 2
Have you already studied functions?
12th Nov 2018, 12:54 PM
HonFu
HonFu - avatar