#include <stdio.h>

int main() {
    int variable; 
    printf("Enter variable value:\n");
    scanf ("%d",&variable);
    
    if (variable%2==0)
    printf (" even number\n");
    else
    printf (" odd number\n");
    return 0;
}

Embed on website

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