public static void Main() { WriteLine("Problem 8"); long answer = Problem8.Solve(); WriteLine($"answer = {answer}"); }
static void Main(string[] args) { List<string> var = new List<string>(); Console.WriteLine("What is the number of variables?"); int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { Console.WriteLine("Code for the declaration labeled {0}", i + 1); var.Add(Console.ReadLine()); } Console.WriteLine("Input the string to be processed as an instruction"); string instr = Console.ReadLine(); Problem8 p = new Problem8(); p.simulate(n, var, instr); }