Answers for "factorial program in ml"

1

factorial program in ml

fun factorial n =
    if n <= 1 then
      1
    else
      factorial (n-1) * n;
Posted by: Guest on July-30-2021

Browse Popular Code Answers by Language