import java.util.Scanner;
    
class Main {
    public static void main(String[] args) {
        //Teclado y variables
        Scanner tec = new Scanner(System.in);
        System.out.println("Escriba un numero:");
        int n1 = tec.nextInt();
/*      double n2 = tec.nextDouble();
        double n3 = tec.nextDouble();
*/      //Algoritmo
        int Resultado = Metodos.factorial(n1);
        System.out.println(Resultado);
    }
   
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: