#include #include using namespace std; //Run it like this: ./a.out | /usr/bin/pnmtopng > solid.png // ls -l // file solid.png // cp solid.png public_html int main() { int nrows {100}; //number of rows of pixels int ncols {100}; //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) { cout << "53 64 20\n"; // } } return EXIT_SUCCESS; }