#include char init_notC(char C) { char notC; if(C=='B') { notC='W'; } else { notC='B'; } return notC; } void draw_pattern(int W, int H, char C, char notC) { using std::cout; using std::endl; for(int i=0; i> W >> H >> C; char notC = init_notC(C); draw_pattern(W, H, C, notC); return 0; }