progs/fun/fa0.fun
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 30 Oct 2023 15:08:40 +0000
changeset 950 fa97d2f60f11
parent 903 2f86ebda3629
permissions -rw-r--r--
updated

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


write(fact(6))