#include #include using namespace std; int main() { const int nrows {64}; //number of rows of pixels const int ncols {64}; //number of columns of pixels cout << "P3\n" << ncols << " " << nrows << "\n" << 255 << "\n"; for (int row {0}; row < nrows; ++row) { for (int col {0}; col < ncols; ++col) { if ((row + col) % 8) { cout << "0 13 14\n"; //black boxes } else { cout << "41 145 156\n"; //light blue boxes } } } return EXIT_SUCCESS; }