编写代码
long e = 1;
long sum = 0; //初始化sum=0
for(int i=1;i<=8;i++){
e = e*i;
sum = sum+e;
}
System.out.println(sum);、
long e = 1;
long sum = 0; //初始化sum=0
for(int i=1;i<=8;i++){
e = e*i;
sum = sum+e;
}
System.out.println(sum);、