import java.util.Scanner;
public class digui {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
System.out.println("欢迎使用阶乘系统");
System.out.print("请输入数字n:");
int n = input.nextInt();
System.out.println(shu(n));
}
public static int shu(int n) {
int resualt = 1;
for(int a = n;a > 0;a--) {
resualt *= a;
}
return resualt;
}
}



