예제 #1
0
        public static void Main(string[] args)
        {
            Console.Write("Please enter the initial number: ");
            int startNumber = int.Parse(Console.ReadLine());

            Console.Write("Please enter the desired number, after the operations: ");
            int endNumber = int.Parse(Console.ReadLine());

            OperationSequenceFinder sequencer = new OperationSequenceFinder(startNumber, endNumber);
            int shortest = sequencer.StartSeach();
            Console.WriteLine(shortest);
        }
예제 #2
0
        public static void Main(string[] args)
        {
            Console.Write("Please enter the initial number: ");
            int startNumber = int.Parse(Console.ReadLine());

            Console.Write("Please enter the desired number, after the operations: ");
            int endNumber = int.Parse(Console.ReadLine());

            OperationSequenceFinder sequencer = new OperationSequenceFinder(startNumber, endNumber);
            int shortest = sequencer.StartSeach();

            Console.WriteLine(shortest);
        }