I have an n x n array of size 420 and I want to copy the content of this array into another array of size 20 x 20
I have already tried the following code where
smallarray is of 20x20 size and largearray is of 420x420 size.
I am programming in C#, so it is giving me exception as "index out of bound"
for(int i=0;i<20;i++)
{
for(int j=0;j<20;i++)
smallarray[i][j]=largearray[i][j]
}