#include<stdio.h>
#include<conio.h>
main()
{
int num;
clrscr();
printf("\n enter the number num");
scanf("\n %d",&num);
if(num%2==0)
{
printf("\n num is even %d",num);
}
else
{
printf("\n num is odd %d",num);
}
return (0);
}
output:-
enter the number =103
odd number
http://www.youtube.com/watch?v=AMUpCyRpkJw&feature=context-gau