#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");
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: