Updated Example: Factorial (markdown)

Bobbi Webber-Manners 2017-11-27 22:09:26 -05:00
parent d2286cdd0b
commit 8d16f78b35

@ -11,3 +11,5 @@ This example shows how EightBall can support recursion. I should point out that
return val * fact(val-1)
endif
return -1 ; ' Never get here
`fact(3)` calls `fact(2)`, which calls `fact(1)`, then finally `fact(0)`.