which function is used to find factorial
Answers
Answered by
1
Answer:
The task is to write a function factorial(n) that calculates n! using recursive calls. By definition, a factorial is 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) .
Answered by
0
Answer:
In this example, you will learn to find the factorial of a non-negative integer entered by the user using recursion.
Similar questions
Math,
3 months ago
Environmental Sciences,
3 months ago
CBSE BOARD XII,
7 months ago
Computer Science,
7 months ago