title: FORTRAN: Control new line on WRITE statement
body: <p>I need to solve the inverted usual problem with the new line in fortran. Like printing on the screen a matrix for example. I'm using:</p>
  
  <pre><code>do i=1,n
   do j=i,m
    write(*, fmt="(f0.2, tr2)", advance="no") matrix(i,j)
   end do
  end do
  </code></pre>
  
  <p>In this way it is gonna put the whole matrix in the same line. I need to put each line in its own and I was wondering if there's a elegant way to do that. My solution is:</p>
  
  <pre><code>do i=1,n
   do j=i,m
    write(*, fmt="(f0.2, tr2)", advance="no") matrix(i,j)
   end do
   write(*, fmt="(a)") " "    &lt;---------- NOT ELEGANT
  end do
  </code></pre>