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) 
      program fortran77
      integer i
      real x, dx
      x = 0.0
      i = 1
100   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
      if(abs(dx).gt.0.000001) goto 100
      x = 4 * x
      write(*,*) x
      end
