Find even or odd number

#include<stdio.h>
#include<conio.h>
void main()
{
int a;
clrscr();
printf("\nEnter the any number  :");
scanf("%d",&a);
if(a%2==0)
{
printf("\n %d is a even number");
}
else
{
printf("\n%d is a odd number");
}
getch();
}


                      Output

Enter any number : 5

5   is  a  odd number

                  


Comments