输出1至100中所有的奇数

count=1
while count<=100:
if count%2==1:
print(count)
count = count + 1

运行结果显示:

 

 

 

 

 

posted @ 2023-11-05 11:45  Thomas2023  阅读(10)  评论(0编辑  收藏  举报