My task is to draw a square on black background using ppm.
What I did is this loop:
for (int h=0; h<=480; h++){
for (int w=0; w<=640; w++){
if (h>100 && h<380 && w<460){
//green paint
fprintf (fp, "%s", greenColor);
fprintf (fp, "%s", space);
} else {...