/ Published in: Groovy
Find the sum of digits in 100! n! means n × (n − 1) × ... × 3 × 2 × 1
Expand |
Embed | Plain Text
} return answer } digitArray.add( i.toBigInteger() ) } }
Comments
Subscribe to comments
You need to login to post a comment.

Take a look at: http://snipplr.com/view/10635/a-groovier-find-the-sum-of-digits-in-100-factorial/