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