time-to-botec/bc/extra/scratchpad.bc

8 lines
95 B
Plaintext
Raw Normal View History

2023-11-02 22:29:56 +00:00
define factorial(x){
if(x > 1){
return x * factorial(x-1)
} else {
return 1
}
}