package DJT;
import java.util.Scanner;
public class 阶乘 {
public static void main(String[] args)
{
int sum=1,i;
Scanner input=new Scanner(System.in);
System.out.println("enter a number:");
int n=input.nextInt();
for(i=1;i<=n;i++){
sum=sum*i;
System.out.println (sum);
}
}
}