python - 基础算法题3 - 对1~100所有数奇数和

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

 

posted @ 2019-07-11 16:22  bigbigbrid  阅读(369)  评论(0编辑  收藏  举报