Examples pf C part 4 even or odd number

                    CHECK EVEN OR  ODD
PROGRAM :

#include<stdio.h>
main()
{
  int i;
  printf("Enter a Number\n");
  scanf("%d",&i);
  if(i%2==0)
  {
    printf("The number %d is Even",i);
  }
  else
  {
    printf("The number %d is Odd",i);
  }
  printf("\n");
}
Output:
Enter a Number
5
The number 5 is Odd