C Collection of code snippets by Arne Vajhøj 
C (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
C Output from Public domain Ratfor, version 1.0
      program ratfor
      integer i
      real x, dx
      x = 0.0
      dx = 1.0
      i = 1
23000 if(abs(dx) .gt. 0.000001)then
      if(mod(i,2) .eq. 1)then
      dx = 1.0 / (2 * i - 1)
      else
      dx = -1.0 / (2 * i - 1)
      endif
      x = x + dx
      i = i + 1
      goto 23000
      endif
23001 continue
      x = 4 * x
      write(*,*) x
      end
