1.22日作业

循环语句做数学题

1.

count=1
while count<6:
    print(count)
    count=count+1
count=8
while count>7 and count <11:
     print(count)
     count=count+1

两段代码单独可以运行,连起来运行不了,下节课看下答案

2.

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

3.

count=2
while count<100:
    print(count)
    count=count+2

四五问等解答

猜你喜欢

转载自www.cnblogs.com/seanlearning/p/10301682.html