DerioFT

1066.py

Sep 24th, 2021 (edited)
129
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. even = 0
  2. odd = 0
  3. positive = 0
  4. negative = 0
  5.  
  6.  
  7. for data in range(5):
  8.     number = float(input())
  9.  
  10.     if number % 2 == 0:
  11.         even = even + 1
  12.  
  13.     else:
  14.         odd = odd + 1
  15.  
  16.     if number > 0:
  17.         positive = positive + 1
  18.  
  19.     if number < 0:
  20.         negative = negative + 1
  21.  
  22. print(even,"valor(es) par(es)")
  23. print(odd,"valor(es) impar(es)")
  24. print(positive,"valor(es) positivo(s)")
  25. print(negative,"valor(es) negativo(s)")
RAW Paste Data