import java.util.*;
import java.lang.*;
import java.io.*;
//Factorial of N ---Feb 2024
// The main method must be in a class named "Main".
public class Main {
public static void main(String[] args) {
// System.out.println("Hello world!");
Scanner scn = new Scanner(System.in);
int N = scn.nextInt();
int ans = solution(N);
System.out.print(ans);
}
public static int solution (int N) {
int fact = 1;
for (int i=1; i<= N; i++) {
fact *= i;
}
return fact ;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: