3.17 How to find cummulative sum

compute \(\sum \limits _{k=1}^{10} \frac {1}{k\left ( k+1\right ) }\)

Mathematica

N[Sum[1/(k*(k + 1)), {k, 10}]]
 

0.9090909090909091
 

 

Matlab

format long 
k=1:10; 
s=cumsum(1./(k.*(k+1))); 
s(end)
 

   0.909090909090909