progs/fun/fa0.fun
changeset 903 2f86ebda3629
parent 814 1fbaa5f05516
equal deleted inserted replaced
902:b40aaffe0793 903:2f86ebda3629
       
     1 def fact(n) =
       
     2   (if n == 0 then 1 else n * fact(n - 1));
       
     3 
       
     4 
       
     5 write(fact(6))