Answer to Question #230034 in Python for rotii

Question #230034

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


1
Expert's answer
2021-08-26T18:32:03-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS