#include <stdio.h>
#include <stdlib.h>
int main()
{
int t;
int l, c;
int i,k,m;
t = 5;
for(m=0; m<t; m++){
scanf(" %d", &l);
scanf(" %d", &c);
for(i=0; i<l; i++){
if(i % 2 == 0){
for(k=0; k<c; k++){
if(k % 2 == 0){
printf("*");
}else{
printf(".");}
}
}else{
for(k=0; k<c; k++){
if(k %2 == 0){
printf(".");
}else{
printf("*");
}
}
}
printf("\n");
}
}
return 0;
}
i don’t know how to correct the answer…
in my program i can get the answer which the problem want.
but when i submit it, it did not run…