-->
当前位置:首页 > 题库 > 正文内容

PROGRAMMING:Factorial sum

Luz4年前 (2021-05-10)题库465
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

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。