填空题 求1!+2!+3!+…+10!的和。
   #include <stdio.h>
   main()
   {  float s = 0,  t = 1;
      int n;
      for  (n=1; 1; n++)
          { 2;
          3;
          }
      printf("1! +2! +3! +…+10! =/%f",  s);
   }
  • 1、
  • 2、
  • 3、
【正确答案】 1、n<=10,    2、t=t*n,    3、s=s+t    
【答案解析】