progs/fun/fa0.fun
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 21 Sep 2023 16:32:46 +0100
changeset 923 437e4f8d35d8
parent 903 2f86ebda3629
permissions -rw-r--r--
updated

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


write(fact(6))