I have an 2D array :
1 2 3 4 5 6
2 6 5 2 4 1
8 7 9 0 0 0
2 3 4 5 6 2
How can I add a new column of 1D array to the above array?
1
0
1
0
So that the result will look like this?
1 2 3 4 5 6 1
2 6 5 2 4 1 0
8 7 9 0 0 0 1
2 3 4 5 6 2 0
- EDIT: I'm not adding a column of zeros here.