Answer to Question #226153 in Python for GANESH

Question #226153

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


1
Expert's answer
2021-08-19T03:19:57-0400
N=int(input())
i=1
while (i<=N):
    if(i%5==0):
        break
    print(i)
    i=i+1

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
APPROVED BY CLIENTS