for(int i = 0; i < m; i++)
{
if(i%2 == 0)
{
for(int j = 0; j < m; j++)
printf("%d ",a[i][j]);
}
else
{
for(int j = m-1; j >= 0; j--)
printf("%d ",a[i][j]);
}
}
0
solved Program to traverse a m*m matrix in inverse s order [closed]