#

求階乘

  • php遞歸求階乘

    function a ($i){if($i>1,$sum=0,$i++){sum=a($i-1)+sum  }   }a(5)

    作者:zxl880717
    2020-07-08 22:20:48
  • 遞歸求階乘

    def factorial(n): result = n for i in range(1, n): result *= i return result nu

    作者:沈家大少ZS
    2020-06-12 17:56:32