top of page
Writer's pictureRajesh Singh

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

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


24 views0 comments

Recent Posts

See All

Commentaires


bottom of page