#include <stdio.h>

int main()
{
    int num;

    /* Input number from user */
    printf("Enter any number: ");
    scanf("%d", &num);

    (num & 1) 
        ? printf("%d is odd.", num) 
        : printf("%d is even.", num);

    return 0;
}

     /*if(num & 1)
    {
        printf("%d is odd.", num);
    }
    else
    {
        printf("%d is even.", num);
    }*/

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: