a two dimensional array with two rows and 3 culumn
static void Main()
{
int[,] array = new int[2, 3];
for (int i = 0; i < array.GetLength(0); i++)
{
for (int j = 0; j < array.GetLength(1); j++)
{
array[i, j] = i + j;
}
}
}
Comments
Leave a comment