C program to check odd or even


#include<stdio.h>

int main()
{
int n;

printf(“Enter an integer\n”);
scanf(“%d”, &n);

if (n%2 == 0)
printf(“Even\n”);
else
printf(“Odd\n”);

return 0;
}

Leave a comment

Your email address will not be published. Required fields are marked *