static int RecursiveFactorial(int value) { if (value < 0) throw new Exception("Bad boy!"); if (value == 0) return 1; return value * RecursiveFactorial(value - 1); }