1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include<stdio.h> 3 int main() 4 { 5 int i,j ; 6 int sum=1,num=0 ; 7 for (i = 1; i <= 10; i++) 8 { 9 sum = sum * i; 10 num += sum; 11 } 12 printf("%d/n", num); 13 return 0; 14 }
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/277195.html