top of page

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

Writer's picture: Rajesh SinghRajesh Singh

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


55 views0 comments

Recent Posts

See All

Comments


bottom of page