I've been trying to create a dynamic 2d matrix where the user gives me the size of the matrix along with the input.
For example: 3 1 2 3 4 5 6 7 8 9, where the first int 3 is the size of the matrix (3\*3) and the rest of the numbers are the numbers I'd like to input in my matrix.
Any ideas how to do it?