Write a program to check even or odd number

#include<stdio.h>
#include<conio.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");
}

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post