import java.util.Scanner; //导包,键盘录入
public class Test_ToString {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
System.out.println(fun(x));
}
public static int fun(int i) {
if (i == 1)
return 1;
else
return i * fun(i - 1);
}
}
|