package 实验;
import java.util.Scanner;
public class N
{
public static void main(String[] args){
System.out.println("请输入一个整数:");
Scanner s = new Scanner(System.in);
int n = s.nextInt();
System.out.println(method(n));
}
public static long method(int n)
{
long result = 0;
if(n == 1)
{
result = 1;
}
else
{
result = n * method(n-1);
}
return result;
}
}