#include<stdio.h>
#include<conio.h>
#include<stdio.h>
#include<conio.h>
void main ( )
{
int a;
printf("Enter a number");
scanf("%d",&a);
if (a%2==0)
printf ("%d is even",a);
else
printf("%d is odd ",a);
getch( );
}
E-notebook
#include<stdio.h>
#include<conio.h>
#include<stdio.h>
#include<conio.h>
void main ( )
{
int a;
printf("Enter a number");
scanf("%d",&a);
if (a%2==0)
printf ("%d is even",a);
else
printf("%d is odd ",a);
getch( );
}