#include #define WIDTH 800 #define HEIGHT 600 #define CYAN 0, 255, 255 int main() { int i,j; /* Step 1. Output the header information */ printf("P6\r\n"); /* magic number */ printf("800 600\r\n"); /* image size */ printf("255\n"); /* max color value */ for (j=1;j<= HEIGHT;j++) { for(i=1;i<=WIDTH;i++) { printf("%c%c%c", 0,128,255); } } return 0; } /* do HEIGHT TIMES print one row : do WIDTH times print one pixel */