static void RecursionFactorialExample01() { const int num = 5; Console.WriteLine($"num = {num}"); Console.WriteLine($"Factorial(num) = {RecursionFactorial.Factorial(num)}"); }
public void RecursionFactorialTest() { for (int i = 0; i < FactorialTable.Length / 2; i++) { Assert.AreEqual(FactorialTable[i, 1], RecursionFactorial.Factorial(FactorialTable[i, 0])); } }