This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var fac10 = Factorial(10); | |
Console.WriteLine("Factorial 10 = " + fac10); | |
var fac20 = Factorial(20); | |
Console.WriteLine("Factorial 20 " + fac20); | |
var facAddition8000 = Factorial(8000); | |
// code below will throw StackOverflowException |
OlderNewer