dazedandconfusedinnc
Technical User
I am fairly new to FORTRAN and am self taught. I just got a new compiler and am having an indexing (I think) issue with 77. Here is the piece of code:
DO n=1,12
READ(10,2007) md
2007 FORMAT(F3.0)
WRITE(11,2008) md(1)
2008 FORMAT(F4.0)
END DO
I am trying to get the 1st value in the array to output, but instead I get the 1st value printed 11 times. If I put it after the 'END DO' then I it prints 0. If anyone could help it would be greatly appreciated.
DO n=1,12
READ(10,2007) md
2007 FORMAT(F3.0)
WRITE(11,2008) md(1)
2008 FORMAT(F4.0)
END DO
I am trying to get the 1st value in the array to output, but instead I get the 1st value printed 11 times. If I put it after the 'END DO' then I it prints 0. If anyone could help it would be greatly appreciated.