package 阶乘;
import java.util.Scanner;
public class 阶乘 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
int i,s=1;
System.out.println("enter n:");
int n=sc.nextInt();
for(i=1;i<=n;i++)
{
s=s*i;
}
System.out.println(s);
}
}