Computer Science, asked by manishbhagat0517, 4 months ago

write function for finding a factorial?​

Answers

Answered by Anonymous
7

{\huge{\pink\dag{\texttt{\orange A\red N\green S\pink W\blue E\purple R\red:}}}}

════════════════════

☞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