Description
Mr620 likes even number very much. Now give you n numbers. Please tell Mr620 whether the number is even or not.
Input
The first line contains a integer n(0<n<=1000);
Then next n lines, every line contains a integer x.
Output
If x is even ,please output “YES”;
or output “NO”;
Sample Input
2
7
8
Sample Output
NO
YES
#include<stdio.h>
int main()
{
int i,n,x;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&x);
if(x%2==0){
printf("YES\n");
}else
{
printf("NO\n");
}
}
return 0;
}