public class FatorialRecursiva {
	
	public static void main(String [] args){
		System.out.println("Fatorial de 7 : " + Fatorial(7) );
	}
	
	public static int Fatorial(int x){
		if(x == 1)
			return 1;
		else
			return x * Fatorial(x-1);
	}
}

public class FatorialRecursiva {
	
	public static void main(String [] args){
		System.out.println("Fatorial de 0 : " + Fatorial(0) );
		System.out.println("Fatorial de 1 : " + Fatorial(1) );
		System.out.println("Fatorial de 3 : " + Fatorial(3) );
		System.out.println("Fatorial de 7 : " + Fatorial(7) );
	}
	
	public static int Fatorial(int x){
		if(x <= 1)
			return 1;
		else
			return x * Fatorial(x-1);
	}
}

fix fatorial recursivo quando calculado fatorial de zero