... // Add the area of the i-th strip (rectangle) value += f(x) * delta; ...