#include
using namespace std;
int main() {
int a[10][10];
int M,N;
cin>>M>>N;
for(int j=0;j<N;j++)
{
if(j&1==1)
{
for(int i=M-1;i>=0;i–)
{
cout<<a[i][j]<<", ";
}
}
else{
for(int i=0;i<M;i++)
{
cout<<a[i][j]<<", ";
}
}
}
what is the mistake in my code?
return 0;
}