#include <stdio.h> int main(){ int horizontal,vertical; char *str = "A"; scanf("%d%d%c",&horizontal,&vertical,str); for(int i = 0;i < vertical;i++){ for(int j = 0;j < horizontal;j++){ printf("%c",*str); if(str = "W"){ str = "B"; }else{ str = "W"; } } printf("\n"); } }