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 fortranvax
      integer i
      real x, dx
      x = 0.0
      dx = 1.0
      i = 1
      do while(abs(dx).gt.0.000001)
        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
      enddo
      x = 4 * x
      write(*,*) x
      end
