Please help me ,why the solution is wrong-
#include
using namespace std;
int main()
{
int n,l,c,o;
cin>>n;
for(int j = 0; j < n; j++)
{
cin>>l;
cin>>c;
o=0;
for(int m = 0; m < l; m++)
{
for(int n = 0; n < c; n++)
{
if(o % 2 == 0)
{
cout<<"*";
}
else
{
cout<<".";
}
o++;
}
cout<<endl;
}
cout<<endl;
}
return 0;
}
Thanks