code :
#include
using namespace std;
int main() {
int m, n;
cin>>m>>n;
int a[m][n];
for(int i = 0; i < m; i++)
{
for(int j = 0; j < n; j++)
{
cin>>a[i][j];
}
}
for(int i = 0; i < n; i++)
{
if(i & 1)
{
for(int j = m-1; j >= 0; j–)
{
cout<<a[j][i]<<",";
}
}
else
{
for(int j = 0; j < m; j++)
{
cout<<a[j][i]<<",";
}
}
}
cout<<"END";
return 0;
}
above is my code for wave print although it’s matching with the test cases shown in e.g but is unable to find any test case plealse suggest some test cases