guys i making a programme in this i have to merge two arrays into one new array but this code does not run at run time ,compiler does not chow any error
int k[100][100];
for (int i=0;i<n;n++)
{
k[i][i]=k[array_1[i]][array_2[i]];
}
for (int i=0;i<n;i++)
{
cout<<k[i][i];
}
here array_1 is my first array and array_2 is second array