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

PROGRAMMING:Calculate the sum of odd factorial

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