logo
  • 教程列表
  • SO官方文檔
  • 遞迴
    • 階乘
    • 資料夾遞迴
  1. StackOverflow 文件
  2. VBA 教程
  3. 遞迴
  4. 階乘

階乘

Created: November-22, 2018

Function Factorial(Value As Long) As Long
    If Value = 0 Or Value = 1 Then
         Factorial = 1
    Else
       Factorial = Factorial(Value - 1) * Value
    End If
End Function
  • 資料夾遞迴
  • 遞迴

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明