Find the sum of digits in 100! (Factorial): A little more groovier
Copy this code and paste it in your HTML
answer *= i
}
}
def digitString
= n.
toString() def digits
= digitString.
collect { it.
toBigInteger() }
}
Report this snippet
Comments
Subscribe to comments