DerioFT

1074.py

Oct 3rd, 2021
769
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. N = int(input())
  2.  
  3. for data in range(1, N + 1):
  4.  
  5.     X = int(input())
  6.  
  7.     if X % 2 == 0 and X > 0:
  8.         print("EVEN POSITIVE")
  9.        
  10.     if X % 2 == 0 and X < 0:
  11.         print("EVEN NEGATIVE")
  12.  
  13.     if X % 2 != 0 and X > 0:
  14.         print("ODD POSITIVE")
  15.  
  16.     if X % 2 != 0 and X < 0:
  17.         print("ODD NEGATIVE")
  18.  
  19.     if X == 0:
  20.         print("NULL")
  21.  
Advertisement
Add Comment
Please, Sign In to add comment