Array- wave print column wise

can anyone tell me what is wrong in this code?
#include
using namespace std;
int main() {
int a[10][10];
int n, m;
cin >> n >> m;
if (n >= 1 && n <= 10 && m >= 1 && m <= 10)
{
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 % 2 == 0)
{
for (int j = 0; j < m; j++)
{
cout << a[j][i] << “,”;
}

		}
		else
		{
			for (int j = m - 1; j >= 0; j--)
			{
				cout << a[j][i] << ",";
			}
		}

	}
	cout << "END";
}

return 0;

}

@arnabmitra490 Hey Arnab Your code is 99.99% correct. You did a small mistake while taking the input. Try to find that out.

@arnabmitra490 hey Arnab, if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience or if you have any query then tell me, I am happy to help you out.

Rating option is just below where you mark this doubt as resolved.