Esempio n. 1
0
        static void Main(string[] args)
        {
            Double test = new Double();

            test.Add((4));
            test.Add(1);
            test.Add(2);
            test.Add(3);
            test.Print();

            double max = test.MaxElement();

            Console.WriteLine($"Max element: {max}");
            int index = test.FindIndex(max);

            Console.WriteLine($"Index of max element: {index}");
            test.DeleteAfterIndex(index);
            Console.WriteLine("Deleting elements after max element");
            test.Print();
            Console.WriteLine($"Number of elements less than average: {test.LessThanAverage()}");
            test.RemoveInd(3);
            Console.WriteLine("After removing element by index");
            test.Print();
        }