Пример #1
0
 static void Main(string[] args)
 {
     double[] taulukko = { 1.0, 2.0, 3.3, 5.5, 6.3, -4.5, 12.0 };
     Console.WriteLine("Sum: " + ArrayCalcs.Sum(taulukko));
     Console.WriteLine("Ave: " + ArrayCalcs.Average(taulukko));
     Console.WriteLine("Min: " + ArrayCalcs.Min(taulukko));
     Console.WriteLine("Max: " + ArrayCalcs.Max(taulukko));
 }
Пример #2
0
        static void Main(string[] args)
        {
            double[] numbers = { 1.0, 2.0, 3.3, 5.5, 6.3, -4.5, 12.0 };

            Console.WriteLine("Sum: " + ArrayCalcs.CalculateSum(numbers));
            Console.WriteLine("Average: " + ArrayCalcs.CalculateAverage(numbers));
            Console.WriteLine("Min: " + ArrayCalcs.ShowMin(numbers));
            Console.WriteLine("Max: " + ArrayCalcs.ShowMax(numbers));
        }