You are on page 1of 1

int n, i, temp;

n = int.Parse(Console.ReadLine());
For(i=0; i<n;i++){
temp = int.Parse(Console.ReadLine());
if(temp<0 && temp%2==0){
Console.WriteLine(“ EVEN NEGATIVE ”);
}
else if(temp>0 && temp%2==0){
Console.WriteLine(“ EVEN POSITIVE ”);
}
else if(temp>0 && temp%2==1){
Console.WriteLine(“ ODD POSITIVE ”);
}
else if(temp<0 && temp%2==1){
Console.WriteLine(“ ODD NEGATIVE ”);
}
else{
Console.WriteLine(“ NULL ”);
}

You might also like