Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. c = 0
  2. x = int(input())
  3. while x != 0:
  4.     c += 1
  5.     x = int(input())
  6. print(c)
  7. """
  8. c = 0
  9. x = -1
  10. while True:
  11.    x = int(input())
  12.    if x == 0:
  13.        break
  14.    c += 1
  15. print(c)
  16. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement