#

求阶乘

  • 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