计算正整数1,2,3,.998,999所有数的和?
问题描述:
计算正整数1,2,3,.998,999所有数的和?
答
1+2+3+……+999
=(1+999)*999/2
=500*999
=499500