Answer to Question #236526 in Python for P.Raja Reddy

Question #236526

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


1
Expert's answer
2021-09-13T05:27:06-0400
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

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