i'm going to try explain my question again.
I have a matrix like that
Int32[,] coordinate = new Int32[5, 5];
I'm printing that with thesee codes.
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
{
Console.Write(coordinate[i,j] + " ");
}
Console.WriteLine();
}
My question is: When user type "4 2" (there is space between two numbers) That means user selected the coordinate (4,2) (x,y) x = 4 y = 2 I need to set a value to coordinate (4,2) in my matrix. My value is -1. So user typed 4 2 my output should be like that intersect of coordinate
I need to make it dynamically. I hope you can help me. Thank you.