Advertisement
kemi4

Untitled

Sep 20th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. c = 0
  2. a = 0
  3. for i in range(10):
  4. n = int(input())
  5. if (n > 0 and a < 0) or (n < 0 and a > 0):
  6. c += 1
  7. a = n
  8. print(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement