Adding a new column in array
Can you tell me what I did wrong ? The program is supposed to create a two-dimensional array of specific dimensions from interval M.N and then enter random numbers form interval X-Y. Then you have to enter a number A which indicates where am I supposed to add a new column to the array. For example A=3 new column is between previous 2nd column and 4th column. The new column should be all zeros. Use of additional arrays is not permitted.
The error I get is that zeros are written in not only the last column but on first too which is not supposed to happen.
Code and example are in attachments.
If anyone can answer, awesome.If not ,its cool.