public class Factorielle {

	public static int factorielle(int n, int indentation) {
		for (int i = 0; i != indentation; i++) {
			System.out.print("    ");
		} 
		System.out.println("Valeur de n : " + n);
		if (n == 1) {
			return 1;
		}
		for (int i = 0; i != indentation; i++) {
			System.out.print("    ");
		} 
		System.out.println("Valeur renvoyée : " + n + factorielle(n - 1, indentation++));
		return n * factorielle(n - 1, indentation++);
	}
}