Factorial de Excel VBA
Function Factorial(n)
Factorial = 1
If n > 1 Then Factorial = n * Factorial(n - 1)
End Function
Excel Hero
Function Factorial(n)
Factorial = 1
If n > 1 Then Factorial = n * Factorial(n - 1)
End Function