I'm trying to create a row in a matrix.
For example, I want the user to enter the row length then for the program to create that row length in the matrix.
I've been doing:
int i, j;
int[,] arr1 = new int[1, 1];
However, I don't know what to do for new int[1, 1]
because if new int
is [column, row]
how do I make it so the user's input is stored in there?
I hope that makes sense. I'm quite new to c# and I'm still trying to understand everything. Any help is greatly appreciated. Please let me know if I've been too vague.