Загрузка данных


using System;

namespace TwentySecondApril
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Введите количество строк");
            int rows = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Введите количество столбцов");
            int columns = Convert.ToInt32(Console.ReadLine());

            int S = 0;
            int[,] a = new int[rows, columns];

            Console.WriteLine("Введите элементы массива:");

            for (int i = 0; i < columns; i++)
                for (int k = 0; k < rows; k++)
                    a[k, i] = int.Parse(Console.ReadLine());

            foreach (int num in a) S += num;

            Console.WriteLine(S);
            Console.ReadKey();
        }
    }
}