[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode
program hello
implicit none
integer(kind=4) :: a,b
namelist /legend/ a,b
a=0
b=0
open(10,file="test01.txt",status="replace")
read(10,nml=legend)
write(*,*) a+b
end program
[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode
program hello
implicit none
integer:: a,b
namelist /pa /a,b
open(101,file="test01.txt",status="old")
read(101,nml=pa)
write(*,*) a+b
end program
[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode
program hello
implicit none
integer:: a,b
namelist /pa/a,b
open(101,file="test01.txt",status="old")
read(101,nml=pa)
write(*,*) a+b
end program hello