Answer to Question #226154 in Python for GANESH

Question #226154

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


1
Expert's answer
2021-08-20T01:09:12-0400
while i:
  input1 = int(input('Enter input here: '))
  if input1 % 3 != 0:
    print(input1)
  else:
    break

Enter input here: 7
7
Enter input here: 8
8
Enter input here: 10
10
Enter input here: 6

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