-->
当前位置:首页 > 题库

PROGRAMMING:Factorial sum

Luz5年前 (2021-05-10)题库536
Given the positive integer n * * (n < = 100) * *, let s = 1+ 2!+ 3!+...+ n!。 Where "!" Denotes factorial, that is n= 1*2*3*...*(n-1)*n。 Such as: 3= 1*2*3=6。 Please program, input positive integer n, output the value of S.
###Input format:
An integer n
###Output format:
Output an integer, factorial sum.
###Input example:
```in
four
```
###Output example:
```out
thirty-three
```






answer:If there is no answer, please comment