Solve of URI 1074 (Even or Odd) in C
#include<stdio.h>int main(void){
long int i,N,X;
scanf("%ld",&N);
for(i=1;i<=N;i++){
scanf("%d",&X);
if(X==0)
printf("NULL\n");
if(X%2==0 && X>0)
printf("EVEN POSITIVE\n");
if(X%2==0 && X<0 data-blogger-escaped-br=""> printf("EVEN NEGATIVE\n");
if(X%2==1 && X>0)
printf("ODD POSITIVE\n");
if(X%2==-1 && X<0 data-blogger-escaped-br=""> printf("ODD NEGATIVE\n");
}
return 0;
}