2
unknown
csharp
4 years ago
665 B
8
Indexable
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();
}Editor is loading...