progs/fun/fa0.fun
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 13 Oct 2023 15:07:37 +0100
changeset 941 66adcae6c762
parent 903 2f86ebda3629
permissions -rw-r--r--
updated

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


write(fact(6))