8 lines
95 B
Plaintext
8 lines
95 B
Plaintext
|
define factorial(x){
|
||
|
if(x > 1){
|
||
|
return x * factorial(x-1)
|
||
|
} else {
|
||
|
return 1
|
||
|
}
|
||
|
}
|