USING LOOPS IN PYTHON

Question

Q2.  Write a program to print all the values between 0 to 20 that aren’t divisible by 3 or 5 using continue .

in progress 0
Aman rathore 5 days 1 Answer 12 views Member 0

Answer ( 1 )

  1. Ans.
    for x in range(21):
    if (x % 3 == 0 or x % 5 == 0):
    continue
    print(x)

Leave an answer

Browse
Browse