Prove that if $f:[0,1]\rightarrow[0,1]$ is a continuous function, then the sequence of iterates $x_{n+1}=f(x_{n})$ converges if and only if $$\lim_{n\to \infty}(x_{n+1}-x_{n})=0$$
First I proved if $x_{n}$ converges then $\lim_{n\to \infty}(x_{n+1}-x_{n})=0$. As $x_n$ converge then, $x_{n+1}$ and $x_n$ converges to the same limit (say $L$), then $\lim_{n\to \infty}(x_{n+1}-x_{n})=L-L=0$. Now we have to prove that if $\lim_{n\to \infty}(x_{n+1}-x_{n})=0$ then $x_n$ converges. Now, for some back calculation, by the continuity of $f$, we can say if $x_n$ does converge to some $X$, then $f(x_n) \rightarrow f(X)=X$, so it converges to a fixed point. And function as it's on $[0,1]\rightarrow[0,1]$ and continuous, so it must have atleast one fixed point. How do I proceed?