time-to-botec/bc/extra/scratchpad.bc
NunoSempere 249a1ff434 initial attempt on bc
buggy because wrong base for log, but it's a start
2023-11-02 23:24:36 +00:00

8 lines
95 B
Plaintext

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