例如, 1+2!+3!+...+5!+6!的和为873。
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在 main函数的横线上填入所编写的若干表达式或语句。
试题程序:
include <stdio.h>
main ()
{
int i, n;
long s=0, t=l;
clrscr ();
printf ("\nInput n: \n");
scanf ("%d",【 】);
for (i=l; i<=n; i++)
{
t=【 】;
s=【 】;
}
printf ("1 ! +2 ! +3 !... +%d! =%ld\n", n, s);
}