#include <stdio.h>

int main() 
{
    int num;
    printf("Enter the number:\n");
    scanf("%d",&num);

    if(num % 2 == 0)
    {
        printf("The given number is even");
    }
    else
    {
        printf("The given number is odd");
    }
}

Embed on website

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