progs/fun/fa0.fun
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 11 Oct 2024 19:13:00 +0100
changeset 967 ce5de01b9632
parent 903 2f86ebda3629
permissions -rw-r--r--
updated

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


write(fact(6))