Program to Check if number is Even or Odd

#include<stdio.h>
#include<conio.h>
void main()
{
int num;
clrscr();
printf("\nEnter No.");
scanf("%d",&num);
if (num%2==0)
{
printf("\nEven");
}
else
{
printf("\nOdd");
}
getch();
}

Leave a Reply