time-to-botec/bc/scratchpad.bc
2023-11-02 22:30:23 +00:00

8 lines
95 B
Plaintext

define factorial(x){
if(x > 1){
return x * factorial(x-1)
} else {
return 1
}
}