예제 #1
0
        static void Main()
        {
            ISeries progression = new ArithmeticalProgression(2, 2);

            Console.WriteLine("Progression:");
            IIndexable indexable = new ArithmeticalProgression(2, 2);



            PrintSeries(progression);

            ListNumber list = new ListNumber(new double[] { 5, 8, 6, 3, 1 });

            Console.WriteLine("List:");
            Console.WriteLine(list[5]);
            PrintSeries(list);
            Console.ReadKey();
        }
예제 #2
0
파일: Program.cs 프로젝트: Emelman/EPAM
        static void Main(string[] args)
        {
            Console.WriteLine("Arithmetic progression and list:");

            ArithmeticalProgression newAp = new ArithmeticalProgression(14, 3);

            double[] newCollect = GenerateDouble(10);
            List     newList    = new List(newCollect);

            while (newList.MoveNext())
            {
                Console.WriteLine(newList.GetCurrent());
            }

            PrintSeries(newList);

            Console.ReadKey();
        }