Techdisk (techdisk)'s status on Monday, 27-Oct-14 19:05:24 UTC

  1. //This is how you even: !nolife
    #<stdio.h>

    int main(void){
    int x;
    printf("\n This is how you \"even\":\n Please enter a number: ");
    scanf("%d", &x);
    while (getchar() != '\n');
    if ((x & 1) == 0) {
    printf(" Even.\n ");
    } else {
    printf(" Odd.\n ");
    }
    getchar();
    return 0;
    }

    Monday, 27-Oct-14 19:05:24 UTC from web