// Output to standard out a red 800 x 600 image in P6 PPM format #include #include int main () { int width = 800; int height = 600; int red = 255; int green = 0; int blue = 0; int i; printf ("P6\n%d %d\n255 ", width, height); for (i=0; i < width*height; i++) { printf ("%c%c%c", red,green,blue); } printf ("\n"); return EXIT_SUCCESS; }