diff options
Diffstat (limited to 'test/fac.resp')
-rw-r--r-- | test/fac.resp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fac.resp b/test/fac.resp new file mode 100644 index 0000000..0fb687c --- /dev/null +++ b/test/fac.resp @@ -0,0 +1,7 @@ +; Factorial +(def (fac n) + (if (= 0 n) 1 + (* n (fac (- n 1))))) + +(fac 6) + |