title: Integer output formatting with print statement
body: <p>I've noted that if I use <code>integer(16)</code> variables, when I use <code>print</code>, the output contains the exact number of spaces expected. Thus, when I use (some might recognize a project euler problem here)</p>
  
  <pre><code>    implicit none
      integer(16)::sum_sq,sq_sum,diff,i
      sum_sq=0;sq_sum=0;
      do i=1,100
         sum_sq=sum_sq+i*i
         sq_sum=sq_sum+i
      enddo
      diff=abs(sq_sum**2-sum_sq)
      print *, "The difference is", diff
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>The difference is 25164150
  </code></pre>
  
  <p>as the output, but when I use <code>integer(8)</code> or <code>integer</code> for the variables, I get </p>
  
  <pre><code>The difference is             25164150
  </code></pre>
  
  <p>as the output. This occurs with and without the <code>-m64</code> flag and only on gfortran (my ifort does not seem to accept <code>kind=16</code>, a separate issue to be dealt with, but returns the output with the spaces for <code>integer(8)</code>).</p>
  
  <p>Does anyone know why this occurs?</p>