title: Is this not that way to make an Italian flag .ppm file?
body: <p>This is my code to create an Italian flag .ppm file:</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
     int width = 800, height = 600, i, j;
  
     printf(&quot;P6\n&quot;);
     printf(&quot;%d %d\n&quot;, width, height);
     printf(&quot;255\n&quot;);
  
     for (i = 0; i &lt; height; i++) {
          for (j = 0; j &lt; width/3; j++) {
              printf(&quot;%c%c%c&quot;, 0,146,70);
          }
          for (j = 0; j &lt; width/3; j++) {
              printf(&quot;%c%c%c&quot;, 255, 255, 255);
          }
          for (j = 0; j &lt; width/3; j++) {
              printf(&quot;%c%c%c&quot;, 206,43,55);
          }
     }
     return 0;
  }
  </code></pre>
  <p>I've already made a Poland and Netherlands flag and it worked well. I don't know if it's right?</p>