If $f$ is a continuous function, then if $\lim_{x\to\infty} f(x)=L$ , then $\lim_{n\to\infty}f(n)=L$
How do I prove this theorem? I've made some attempts by using the greatest integer function but it does not seem very coherent. I'd appreciate any help!