Is it possible to dynamically set the size of an array in Fortran 77? For example a code like the one below, but written in such a way that it works.
Code:
program main
real r
integer length
length=30
do 10 i=1,length
r(i)=0
10 continue
do 20 i=1,length
print *, r(i)
20 continue
return
end
What I'm trying to do is avoid having the following line: