Forezz

ДЗ 5 Н 3

Jul 11th, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. # _*_ coding: utf-8 _*_
  2. count = 0
  3. number = int(input())
  4.  
  5. for i in range (9):
  6.     tmp = number  
  7.     number = int(input())
  8.     if number // abs(number) != tmp // abs(tmp):
  9.         count += 1    
  10. print (count)
Advertisement
Add Comment
Please, Sign In to add comment