Răspuns:
#include <iostream>
using namespace std;
int main()
{
int m,n, v[50][50], i, j, a;
cin >> m >> n;
for (i=0; i<m; i++) {
a=2*i+1;
for (j=0; j<n; j++) {
v[i][j]=a+j;
}
}
for (i=0; i<m; i++) {
for (j=0; j<n; j++) {
cout << v[i][j] << " ";
}
cout << endl;
}
return 0;
}
Explicație: