Lesson 36 of 42 · +160 xp

Recursion

Function calls itself.

Explained simply

Your task

Write: int fact(int n) { return n <= 1 ? 1 : n * fact(n - 1); }

recursion.c
← Back