6 lines
101 B
Text
6 lines
101 B
Text
function Factorial(%num)
|
|
{
|
|
if(%num < 2)
|
|
return 1;
|
|
return %num * Factorial(%num-1);
|
|
}
|