Dividers (no break or continue)


We will see how break and continue work, but first let's see a loop to find all the dividers on a number n.


examples/strings/no_break_continue.py
i = 2
n = 3*5*7
while i < n:
    if (n / i) * i == n:
        print('{:2}  divides {}'.format(i, n))
    i = i + 1

 3  divides 105
 5  divides 105
 7  divides 105
15  divides 105
21  divides 105
35  divides 105