Пример #1
0
        private static void SbyteArrayProcessing()
        {
            ArrayLength();
            sbyte[] sbyteArr = new sbyte[length];
            for (int i = 0; i < sbyteArr.Length; i++)
            {
                sbyteArr[i] = Convert.ToSByte(SingleRandom.Next(-10, 11));
            }

            ConsolePrintArray(sbyteArr);
            sbyte sumSbyte = sbyteArr.ArraySum();

            Console.WriteLine($"Sum of elements in array: {sumSbyte.ToString()}");
        }