[Thread Prev][Thread Next][Index]

accumulate a number



Hi all,

Is there a way to accumulate a number through the repeat loop?

In Fortran, we can do it by: do i=1:10
                               A=A+1
                             enddo

But in Ferret, repeat/t=`t1`:`t2`:`dt` (let A=A+1) is illegal.

Any suggestions. Thanx.

Dongxiao

--------------------------------------------------------------------
 Dr. Dongxiao Zhang
 NOAA/PMEL Bld#3
 7600 Sand Point Way NE
 Seattle, WA 98115-0070
 Phone  : (206)526-4184
--------------------------------------------------------------------




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement