计算,|1-1/2|+|1/3-1/2|+|1/4-1/3|+……+|1/1000-1/999|.

问题描述:

计算,|1-1/2|+|1/3-1/2|+|1/4-1/3|+……+|1/1000-1/999|.