Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int a,x,n;
- scanf("%d",&a);
- for(x=1; x<=a; x++) {
- scanf("%d",&n);
- if(n==0) {
- printf("NULL\n");
- } else if(n%2==0&&n>0) {
- printf("EVEN POSITIVE\n");
- } else if(n%2==0&&n<0) {
- printf("EVEN NEGATIVE\n");
- } else if(n%2==1&&n>0) {
- printf("ODD POSITIVE\n");
- } else if(n%2==-1&&n<0) {
- printf("ODD NEGATIVE\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement