Advertisement
RavenChrstn

Untitled

Sep 24th, 2021
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. N = int(input())
  2.  
  3. if N < 10000:
  4.     for times in range(N):
  5.         X = int(input())
  6.         if -10**7 < X < 10**7:
  7.             if X == 0:
  8.                 print("NULL")
  9.             if X < 0 and X % 2 == 0:
  10.                 print("EVEN NEGATIVE")
  11.             if X > 0 and X % 2 == 0:
  12.                 print("EVEN POSITIVE")
  13.             if X < 0 and X % 2 != 0:
  14.                 print("ODD NEGATIVE")
  15.             if X > 0 and X % 2 != 0:
  16.                 print("ODD POSITIVE")
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement