出什么错了啊
public class kk{
public static void main(String[] args){
}
System.out.print(method(5));
public static int method(int n){
if(n==1){
return 1;
}else
return n*method(n-1);
}
}
public class kk{
public static void main(String[] args){
}
System.out.print(method(5));
public static int method(int n){
if(n==1){
return 1;
}else
return n*method(n-1);
}
}
2016-07-25
举报