factorial.sl 152 B

12345678
  1. % This is a file with a test function in to see if I can compile it.
  2. (de factorial (n)
  3. (if (zerop n)
  4. 1
  5. (times n (factorial (sub1 n)))))