How do you check whether a number is divisible by another number?
How do you check whether a number is divisible by another number? Question: I need to test whether each number from 1 to 1000 is a multiple of 3 or a multiple of 5. I tried this code in Python 2.x: n = 0 s = 0 while (n < 1001): x = n/3 if …