Hi,
I knew Fortran long time ago but forgot all now. Can you correct the folloing program for me?
Thank you in advance.
PROGRAM Hello
REAL a(2,2)
a = (/1.0,2.0,3.0,4.0/)
CALL Test(a)
print*,a(1,1)
CONTAINS
SUBROUTINE Test(a)
REAL a(2,2)
a(1,1)=a(1,1)+9.0
END SUBROUTINE Test
END PROGRAM Hello
I knew Fortran long time ago but forgot all now. Can you correct the folloing program for me?
Thank you in advance.
PROGRAM Hello
REAL a(2,2)
a = (/1.0,2.0,3.0,4.0/)
CALL Test(a)
print*,a(1,1)
CONTAINS
SUBROUTINE Test(a)
REAL a(2,2)
a(1,1)=a(1,1)+9.0
END SUBROUTINE Test
END PROGRAM Hello