I tried to write the integral as limit of a sum which gives:$$\int_0^1f(r-1+x)dx=\lim_{n\to\infty}\frac{1}{n}[f(0)+f(\frac{1}{n})+f(\frac{2}{n})...+f(\frac{n-1}{n})]$$
which i wrote as: $$\lim_{n\to\infty}\frac{1}{n}\sum_{r=0}^{n-1}f(\frac{r}{n})$$
and when I put this in the question, I get a double summation. I don't know how to go further. Kindly suggest.
Btw the answer to this question is $$\int_0^nf(x)dx$$