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

PROGRAMMING:Calculate the sum of odd factorial

Luz3年前 (2021-05-10)题库274
Programming: input a positive integer n (n ≤ 18), find out the sum of factorial of all odd numbers from 1 to n.
###Input format:
Enter a positive integer n (n ≤ 18).
###Output format:
Output the sum of the factorials and wrap the last line.
###Input example:
```in
sixteen
```
###Output example:
```out
sum=1313941673647
```







answer:If there is no answer, please comment

发表评论

访客

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