计算一个数的阶乘之和
比如给定10 求 1!+2!+3!+……+10!#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int fact(int x){ if (x <= 0) { return 0; } else { int result = 1; for (int i = 1; i <= x; i++){ result = result * i; } return result; }}int m