dart实现阶乘

static double _factorial(double num){

  double factorial = 1;

  for( double i = num ; i >= 1; i-- ) {
    factorial = factorial*i ;
  }
  return factorial;


}
Share