program to find entered number is even or odd.
 
void main() { int a; clrscr(); printf("enter number to check="); scanf("%d",&a); if(a%2==0) { printf(" given number is even"); } else { printf("given number is odd"); } getch(); } output : enter number to check=4 given number is even