Question #303028

print multiples of 3 in given N numbers


Expert's answer

#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!

LATEST TUTORIALS
APPROVED BY CLIENTS