public static void Main() { Problem1.Execute(); Problem2.Execute(); Problem3.Execute(); Console.ReadLine(); }
static void Main(string[] args) { //https://projecteuler.net/archives Console.WriteLine("Which Problem would you like to load? (One, two, etc)"); string userInput = Console.ReadLine(); switch (userInput.ToLower()) { case "one": Problem1 problem = new Problem1(); problem.ProblemOne(); break; default: Console.WriteLine("Input not recognised"); Console.ReadLine(); break; } }
static void Main(string[] args) { Problem1.Calculate(); Problem2.Calculate(); }