public class Factorial {
//递归程序
static int f(int a){
return a == 0?1:a*f(a-1);
}
public static void main(String[] args) {
System.out.println(f(10));
}
}
public class Factorial {
//递归程序
static int f(int a){
return a == 0?1:a*f(a-1);
}
public static void main(String[] args) {
System.out.println(f(10));
}
}