public static int fun 1(int RES){
int temp 1 = 1;
if(res!=1){
for(int I = 1;我& lt= resi++){
temp 1 = temp 1 * I;
}
}
返回temp 1;
}
公共靜態int fun2(int res){
int temp 2 = 0;
for(int I = 1;我& lt= resi++){
temp 2 = temp 2+fun 1(I);
}
返回temp2
}
公共靜態void main(String[] args) {
int a = fun 2(10);
System.out.println("10!+9!+8!+...2!+1!= "+a);
}
}