public static void DemoMain(string[] args) { ISeries progression = new ArithmeticalProgression(2, 2); Console.WriteLine("Progression:"); PrintSeries(progression); ISeries list = new List(new double[] { 5, 8, 6, 3, 1 }); Console.WriteLine("List:"); PrintSeries(list); }
static void Main(string[] args) { IIndexableSeries progression = new ArithmeticalProgression(2, 2); Console.WriteLine("Progression:"); PrintSeries(progression); IIndexableSeries list = new List(new double[] { 5, 8, 6, 3, 1 }); Console.WriteLine("List:"); PrintSeries(list); Console.ReadKey(); }
static void Main(string[] args) { ISeries arithmeticalProgression = new ArithmeticalProgression(2, 2); Console.WriteLine("Arithmetical progression:"); PrintSeries(arithmeticalProgression); ISeries list = new List(new double[] { 5, 8, 6, 3, 1 }); Console.WriteLine("List:"); PrintSeries(list); ISeries geometricProgression = new GeometricProgression(2, 2); Console.WriteLine("Geometric progression:"); PrintSeries(geometricProgression); Console.ReadKey(); }