库 VBA 阶乘
-
数据库vba中阶乘怎么写
VBA中,可以通过编写自定义函数来计算阶乘,以下是一个示例代码:,“`vba,Function Factorial(n As Integer) As Long, Dim result As Long, Dim i As Integer, result = 1, For i = 1 To n, result = result i, Next i, Factorial = result,End Function,
VBA中,可以通过编写自定义函数来计算阶乘,以下是一个示例代码:,“`vba,Function Factorial(n As Integer) As Long, Dim result As Long, Dim i As Integer, result = 1, For i = 1 To n, result = result i, Next i, Factorial = result,End Function,