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