Test case failed

#include
using namespace std;
int main() {
int arr[10][10]={0};
int M,N;
cin>>M>>N;
for(int i=0;i<M;i++)
{
for(int j=0;j<N;j++)
{
cin>>arr[i][j];
}
}
int i=0;
int j=0;
while(j<N)
{
while(i<M)
{
cout<<arr[i][j]<<", β€œ;
i++;
}
j++;
i–;
while(i>=0)
{
cout<<arr[i][j]<<”, ";
i–;
}
j++;
i++;
}
cout<<β€œEND”;
return 0;
}
how should i came to know that which test cases i failes?

Please share the link of Code

How to Share Link of Code??

  1. paste your code at https://ide.codingblocks.com/

  2. click->file->save

  3. after a link will be generated at top in place of url something like: https://ide.codingblocks.com/s/12345

  4. share this link

try to run ur code on this test case
2 3
1 2 3
4 5 6

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.