當前位置:編程學習大全網 - 電腦編程 - 傻瓜編程

傻瓜編程

公共類數組2 {

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);

}

}

  • 上一篇:全國計算機二級必須程序全部寫對才有分還是按步給分
  • 下一篇:口罩哪壹層可以當過濾網
  • copyright 2024編程學習大全網