0
0
0
for(int j=1;j<=m;j++){
if(j%2!=0)
for(int i=1;i<=n;i++){
a[i][j]=++l;
}
else
for(int i=n;i>=1;i--){
a[i][j]=++l;
}
}
0