C program tofind out odd or even number using modulus operator
#include <stdio.h>
void main(void)
{
int i;
printf("Enter an integer\n");
scanf("%d",&i);
if(i%2==0)/* Modulo operator Here it produce 0 for every even Number */
{
printf("This is an even number.\n");
}
else
{
printf("This is an odd Number\n");
}