write function for finding a factorial?
Answers
Answered by
7
════════════════════
☞The task is to write a function factorial(n) that calculates n! using recursive calls. By definition, a factorial n! can be written as n * (n-1)! . In other words, the result of factorial(n) can be calculated as n multiplied by the result of factorial(n-1) .
════════════════════
Similar questions