📜  c# 递归函数代码示例

📅  最后修改于: 2022-03-11 14:49:15.089000             🧑  作者: Mango

代码示例1
public static double Factorial(int number)
{
      if (number == 0)
    {
          return 1;
    }
    return number * Factorial(number-1);//Recursive call
}