Question #230034

Write a code to print multiples of 3 or 7 from 1 to 100 using while loops.


Expert's answer

num = 1

while num < 100:
    if num % 3 == 0 or num % 7 == 0:
        print(num)
    num += 1

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS