Answer to Question #236716 in Python for mahesh

Question #236716

You are given

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

The first line of input is an integer

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


1
Expert's answer
2021-09-13T18:39:29-0400
N = int(input("Enter an interger: "))


for i in range(N):
    x = int(input("Enter the numbers: "))
    if x % 5 == 0:
        print(x, 'is a multiple of 5')
        break
    print(x)

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