/ Published in: Groovy
Find the sum of digits in 100!
n! means n × (n − 1) × ... × 3 × 2 × 1
n! means n × (n − 1) × ... × 3 × 2 × 1
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
} return answer } digitArray.add( i.toBigInteger() ) } }