Output is correct but no test case pass

#include
using namespace std;
int main()
{
int a[100][100];
int m,n;
cout<<“enter number”<<"\n";
cin>>m>>n;
for(int r=0;r<=m-1;r++)
{
for(int c=0;c<=n-1;c++)
{
cin>>a[r][c];
}
}
for(int c=0;c<=n-1;c++)
{
if(c%2==0)
{
for(int r=0;r<=m-1;r++)
{
cout<<a[r][c]<<", “;
}
}
else
{
for(int r=m-1;r>=0;r–)
{
cout<<a[r][c]<<”, ";
}
}
}
cout<<“END”;

}

hello @Nasir

remove this statement from ur code ,it will pass all test cases.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.