62,629
社区成员
发帖
与我相关
我的任务
分享
//小程序
public class panel {
static int result = 1;
public static void main(String[] args) throws ParseException {
test( 2, 5);
System.out.println(result);
}
static void test(int i, int j) {
if (j == 0) {
return;
}
if (i == 0) {
result = 0;
return;
}
result *= i;
j--;
if (j == 0)
return;
else
test(i,j);
}
}