top of page

Write a program to print numbers from 1 to 20 except multiple of 2 & 3.

Oct 29, 2024
1 min read

Updated: 4 days ago

Program:

for x in range(1,20):

if(x%2==0 or x%3==0):

continue

print(x,end='' ")

print("\n")


Output:

1


5


7


11


13


17


19


Recent Posts

See All

1 Comment


Lyly
Oct 29

Infinite Craft encourages a thoughtful approach to crafting, helping players explore connections between existing elements while searching for entirely new creations.

Like
bottom of page