Answer to Question #303028 in Python for sai

Question #303028

print multiples of 3 in given N numbers


1
Expert's answer
2022-02-26T11:31:34-0500
#print multiples of 3 in given N numbers


s = (str(input("Enter numbers separated by SPACE: "))).split(" ")
print("Multipl of 3 are: ")
for r in range(0,len(s)):
    if(int(s[r])%3==0):
        print(s[r])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS