1-100累加

i = 1
sum = 0
while i <= 100:
    sum += i
    i += 1
print(sum)

  

posted @ 2018-05-08 17:27  汪凡  阅读(319)  评论(0编辑  收藏  举报