#include <stdio.h>标签:return,int,sum,程序,计算,printf,main,+....+,scanf From: https://blog.51cto.com/u_15923331/6021156
int main()
{ int i = 1;
int n = 0;
scanf("%d", &n);
int r = 1;
int sum = 0;
for (i = 1; i <= n; i++)
{ r = i * r;
sum = r + sum;
}
printf("%d\n", r);
printf("%d\n", sum);
return 0;
}