How to write output values to the standard output without carriage return in FORTRAN

How to write output values to the standard output without carriage return:

program tstNoadv
 integer :: i
 do i = 1, 10
 write(*,"(A1,I6.4,$)") char(13), i
 call system("sleep 1")
 end do
 write(*,*) "Done"
 stop
end program

About albertsk

Professor at the University of Hawaii
This entry was posted in Uncategorized and tagged . Bookmark the permalink.