4 lines
86 B
Text
4 lines
86 B
Text
|
|
static function factorial(n:Int):Int {
|
||
|
|
return n == 0 ? 1 : n * factorial2(n - 1);
|
||
|
|
}
|