/*Check entered value is even or odd using if-else*/
#include<stdio.h>
int main()
{
int num;
printf("Enter num=");
scanf("%d",&num);
if(num%2==0)
printf("\nIt is even");
else
printf("\nIt is Odd");
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: