Finding value of $\displaystyle \lim_{n\rightarrow \infty}\frac{1}{n}\int^{\pi}_{0}\lfloor n \sin (x) \rfloor \,dx$
Try: In $0 \leq x<\pi$. Then $0 \leq\sin (x) \leq 1$. So $0 \leq n\sin (x) \leq n$
So $$\lim_{n\rightarrow \infty}\frac{1}{n}\bigg(0+1+2+3+\cdots +n-1\bigg)=\lim_{n\rightarrow \infty}\frac{n(n+1)}{2n}$$
What is wrong in my solution? Help me to solve it. Thanks.
HINT:
Note that
$$\lfloor n\sin(x)\rfloor=n\sin(x)-\{n\sin(x)\}$$
where $\{n\sin(x)\}$ is the fractional part of $n\sin(x)$ and is therefore bounded in absolute value by $1$.