Explanatory Question
Why is the compute() method recursive?
return n * compute(n - 1);
return n * compute(n - 1);
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.