Example #1
0
        static void Main(string[] args)
        {
            /*string str;
             * int count;
             * TimerManager manager = new TimerManager();
             * Person p = new Person("Jon", manager);
             * Person a = new Person("Joe", manager);
             * Person b = new Person("Jeffrey", manager);
             *
             * System.Console.WriteLine("Enter the count of seconds:");
             * do
             * {
             *  str = System.Console.ReadLine();
             *
             * } while (!Int32.TryParse(str,out count));
             *
             * manager.SimulateTimer(count*1000);
             */
            CustomQueue <int> queue = new CustomQueue <int>();

            queue.EnQueue(1);
            queue.EnQueue(5);
            queue.EnQueue(10);
            WriteQueue(queue);
            queue.DeQueue();
            WriteQueue(queue);


            System.Console.ReadKey();

            foreach (int number in FibonacciNumbers.GetNubers(10))
            {
                System.Console.WriteLine(number);
            }

            System.Console.ReadKey();
            foreach (int number in FibonacciNumbers.GetNubers(5))
            {
                System.Console.WriteLine(number);
            }

            System.Console.ReadKey();
        }