Arrays col wise wave print

#include
#include
using namespace std;
int main() {
int m,n;
cin>>m>>n;
int arr[m][n];
for (int row=0;row<m;row++){
for (int col=0; col<n;col++){
cin>>arr[row][col];
cout<<arr[row][col]<<" " ;
}
cout<<endl;
}
cout<<"********* "<<endl;

for (col =0;col<n;col++){
if (col%2==0){

}

}

return 0 ;

}
unable to think further .

hey @2001jainrupesh, for arr[i][j], you have to run two loop, outer loop is for j going from 0 to N, inner loop is for i, check whether i is odd or even. If i is odd than run i from 0 to m and if i is even run i from m-1 to 0.