i = 1
while i <= 100:
if i%2 == 1:
print(i)
i += 1
练习题:求1~100所有奇数
最新推荐文章于 2024-11-04 21:51:40 发布
i = 1
while i <= 100:
if i%2 == 1:
print(i)
i += 1