Question #236717

Multiples of 3

You are given

N inputs. Print the numbers that are multiples of 3.Input

The first line of input is an integer

N. The next N lines each contain an integer as input.



Expert's answer

N = int(input())
data = []
for i in range(N):
    data.append(int(input()))
for i in data:
    if i % 3 == 0:
        print(i)
LATEST TUTORIALS
APPROVED BY CLIENTS