Number 3 of the divisible print 100

n = 0
while n < 100:
    n = n + 1
    if n % 3 != 0:
        continue
    print(n)

First assignment equal to N 0

Within a few cycles 100

If the remainder is 3 divided by a number not equal to 0, the Continue, (the end of the cycle, for the next cycle)

All within the printing cycle N

Guess you like

Origin www.cnblogs.com/liycyt/p/12538964.html