Java/Facto.java
<filename>Java/Facto.javaimport java.util.Scanner;

public class Facto {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int product = 1;;
        for(int i = 1; i <= n; i++ ){
            product *=i;
        }
        System.out.println(product);
        sc.close();
    }
}