#include<stdio.h>
#include<conio.h>
int
iseven(int num);
void
main()
{
int num,ans;
clrscr();
printf("\n
enter the value of num");
scanf("\n
%d",&num);
ans=iseven(num);
if(ans==1)
{
printf("\n number is even");
}
if(ans==0)
{
printf("\n number is odd");
}
getch();
}
int
iseven(int num1)
{
if(num1%2==0)
{
return
1;
}
else
{
return
0;
}
}
/* output
enter the value of num7
number is odd */