输出0~100之间的数字之和

import time

i = 0

num  = 0

while i<= 100:   

num+=i   

i+=1

print('%d'  %num)

posted @ 2019-03-26 22:15  不忘初心_LZY  阅读(517)  评论(0)    收藏  举报