You are given
The first line of input is an integer
In the given example, there are
6 inputs. 1, 2, 3, 5, 9, 6After
3, we have encountered 5, which is a multiple of 5.So, the output should be
N = int(input())
for i in range(N):
number = int(input())
if number % 5 == 0:
print('Multiple of 5')
break
print(number)
Comments
Leave a comment