PROGRAM :-
N = int(input("Enter any integer value : "))
print("List of numbers from 1 to ",N)
print("not divisible by 3,6,9,...is :")
for i in range(1,N+1):
if i%3!=0:
print(i,end=' ')
N = int(input("Enter any integer value : "))
print("List of numbers from 1 to ",N)
print("not divisible by 3,6,9,...is :")
for i in range(1,N+1):
if i%3!=0:
print(i,end=' ')
VIDEO LINK : -
No comments:
Post a Comment
Note: only a member of this blog may post a comment.