#include <stdio.h>

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

Embed on website

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