i = 1
j = 0
while i <= 100:
j += i
i += 1
print(j)
练习题:求1~100所有整数的和
最新推荐文章于 2024-06-01 23:35:30 发布
i = 1
j = 0
while i <= 100:
j += i
i += 1
print(j)