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