2

mail@pastecode.io avatar
unknown
csharp
2 years ago
665 B
4
Indexable
Never
            double[,] a = new double[2,2];
            int r = a.GetLength(0); //rows (satr)
            int c = a.GetLength(1); //colums (soton)
            //Console.WriteLine(r+"        "+c);

            for (int i = 0; i < r; i++)
            {
                for (int j = 0; j < c; j++)
                {
                    a[i, j] = int.Parse(Console.ReadLine());
                }
            }



            for (int i = 0; i < r; i++)
            {
                for (int j = 0; j < c; j++)
                {
                    Console.Write(a[i, j] + "\t");
                }
                Console.WriteLine();
            }