#P2026. 【例4.12】阶乘和

【例4.12】阶乘和

Description

求 S=1!+2!+3!+....+n!

Input Format

输入正整数n。

Output Format

输出s。
3
9

Hint

【数据范围】
对于所有数据:1≤n≤10。

Source

1.4.4循环嵌套