The Left-hand Rectangular Approximation Method (LRAM) says that, if $f(x)$ is continuous on $[a,b]$,
$$\int_a^b f(x)\,dx=\lim_{n\to\infty}\frac {b-a}{n}\sum_{i=1}^n f\left(a+\frac{b-a}n (i-1) \right)$$
Comparing that with your first sum, we see that $\ a=0,\ b=\pi, f(x)=\sin x/\pi$. So, the limit of your sum as $n\to\infty$ is
$$\frac{1}{\pi}\int_0^{\pi} \sin x\,dx$$
Note that this is not your sum, as you asked, not even an infinite sum, but a limit of sums.
The Right-hand Rectangular Approximation Method (RRAM) says that, if $f(x)$ is continuous on $[a,b]$,
$$\int_a^b f(x)\,dx=\lim_{n\to\infty}\frac {b-a}{n}\sum_{i=1}^n f\left(a+\frac{b-a}n i \right)$$
Comparing that with your second sum, we see that $f(x)=\sqrt x,\ a=1,\ b=2$. So
the limit of your sum as $n\to\infty$ is
$$\int_1^2 \sqrt x\,dx$$
Note: The main difference in these two methods is that LRAM has the term $f(a)$ but not the term $f(b)$ while RRAM has the term $f(b)$ but not the term $f(a)$ in the sum. This is due to the different indices on the sum.