#include <stdio.h>
int main() {
int x;
printf("enter a number \n");
scanf("%d", &x);
if (x % 2 == 0)
{
printf("the number is even" );
}
else
{
printf("the number is odd" );
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: