program main integer i, j, m, n real dx, dy, f, total, x, y total = 0.0 y = 0.0 do j = 1, n x = 0.0 do i = 1, m total = total + f ( x, y ) x = x + dx end do y = y + dy end do stop end