Arrays wave print column wise

#include
using namespace std;
int main()
{
int i,j,rows,col,A[10][10];
cin>>rows>>col;
for(i=0;i<rows;i++)

	{
	for(j=0;j<col;j++)
		cin>>A[i][j];
}
for(i=0;i<col;i++)

{
if(i%2==0)
{
for(j=0;j<rows;j++)
cout<<A[j][i]<<",";}
else
for(j=rows-1;j>=0;j–)
cout<<A[j][i]<<",";
}
cout<<“END”;
return 0;
}

the test cases are showing wrong answer why ?
it worked on dev c++

@divyam_13 space after comma i think. tell if it works

still not working …

share updated code using ide link