1 2 3 4 5
16 17 18 19 6
15 23 24 20 7
14 22 25 21 8
13 12 11 10 9
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++)
{
std::cout << arr[i][j] << ' ';
}
std::cout << std::endl;
}
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9