Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = 0
- x = int(input())
- while x != 0:
- c += 1
- x = int(input())
- print(c)
- """
- c = 0
- x = -1
- while True:
- x = int(input())
- if x == 0:
- break
- c += 1
- print(c)
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement