Write a c program to check the given is even or odd?




#include <stdio.h>
#include <conio.h>
void main()
{
int n;
clrscr();
printf("Enter num:");
scanf("%d",&n);
if(n%2==0)
printf("Even");
else
printf("Odd");
getch();
}