condition for even numbers code example Example: how to know if a number is even in c if((x & 1) == 0) printf("EVEN!\n"); else printf("ODD!\n");