progs/fun/fa0.fun
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 17 Nov 2023 20:06:43 +0000
changeset 955 47acfd7f9096
parent 903 2f86ebda3629
permissions -rw-r--r--
updated

def fact(n) =
  (if n == 0 then 1 else n * fact(n - 1));


write(fact(6))