#include<stdio.h>
int main()
{
int n,i,a;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
if(a==0)
printf("NULL\n");
else if(a%2==0 && a>0)
printf("EVEN POSITIVE\n");
else if(a%2==0 && a<0)
printf("EVEN NEGATIVE\n");
else if(a%2!=0 && a>0)
printf("ODD POSITIVE\n");
else if(a%2!=0 && a<0)
printf("ODD NEGATIVE\n");
}
return 0;
}
int main()
{
int n,i,a;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
if(a==0)
printf("NULL\n");
else if(a%2==0 && a>0)
printf("EVEN POSITIVE\n");
else if(a%2==0 && a<0)
printf("EVEN NEGATIVE\n");
else if(a%2!=0 && a>0)
printf("ODD POSITIVE\n");
else if(a%2!=0 && a<0)
printf("ODD NEGATIVE\n");
}
return 0;
}
No comments:
Post a Comment