Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Compile and Execute FORTRAN-95 Online

program hello
   implicit none
   
   integer          ::Num=15
   integer          ::i
   integer          ::thisyear=1984
   character(len=4) ::YYYY
   character(len=31)::filename='../Output/Analysis/Ensemble/00/'
   
   write(YYYY,'(I4)') thisyear
   
   do i=1,Num
     write(filename(29:30),'(I2.2)') i
     
     print*,filename//YYYY//'.grd'
   enddo
   
end program Hello

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.