3.17 How to find cummulative sum

compute k=1101k(k+1)

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