Question #236526

You are given N inputs. Print the given inputs until you encounter a multiple of 5.


Expert's answer

N = int(input('Enter no of inputs here: '))
for i in range(N):
  inputs = int(input('Enter given no'))
  if inputs % 5 != 0:
    print(inputs)
  else:
    break
LATEST TUTORIALS
APPROVED BY CLIENTS