/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author felix
 */
public class Factorial {
    
    static public void main(String args[]) {
        int n = 10;
        System.out.printf("Factorial de %d es %d\n", n, factorial(n) );
    }
    
    static public int factorial(int N){
        if(N==1) return 1;
        else return N*factorial(N-1);
    }

}
