C Program to Check EVEN & ODD NO
main()
{
int n, a;
clrscr();
printf("ENTER ANY NUMBER: ");
scanf("%d", &n);
a=n%2;
if(a==0)
{
printf("THE NUMBER IS EVEN...\n");
}
else
{
printf("THE NUMBER IS ODD...\n");
}
getch();
}
OUTPUT :
Enter Any No: 5
The number is odd