Share your repls and programming experiences

← Back to all posts
4.8. For: Sum of factorials
pole55 (199)

"In mathematics, the factorial of an integer n, denoted by n! is the following product: n! = 1 × 2 × … × n

For the given integer n calculate the value 1! + 2! + 3! + ... + n!

Try to discover the solution that uses only one for-loop. And don't use math module in this exercise."