Untitled

mail@pastecode.io avatar
unknown
plain_text
10 months ago
629 B
0
Indexable
Never
#include <stdio.h>
int main()
{
    int t,n;
    scanf("%d",&t);
    for (int i = 0; i <=t; i++)
    {
        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!=0 && n>0)
        {
            printf("ODD POSITIVE\n");
        }
        else if (n%2!=0 && n<0)
        {
            printf("ODD NEGATIVE\n");
        }   
    }
    
    return 0;
}