Sunday, August 28, 2016

uri- 1866 - Bill

#include<stdio.h>

int main()
{
    int i,a,b;

    scanf("%d",&a);

    while(a--){
        scanf("%d",&b);
        if(b%2==0){
            printf("0\n");
        }
        else{
            printf("1\n");
        }
    }
    return 0;
}

No comments: