#include <iostream.h>
#include <conio.h>
int main ()
{
clrscr();
int n;
cout <<"Enter Number : ";
cin >> n;
if (n%2==0) //if n is divisible by 2 and remainder is 0.
{
cout <<"The Number Is Even\n";
}
else
{
cout <<"The Number Is Odd";
}
getch();
return 0;
}
#include <conio.h>
int main ()
{
clrscr();
int n;
cout <<"Enter Number : ";
cin >> n;
if (n%2==0) //if n is divisible by 2 and remainder is 0.
{
cout <<"The Number Is Even\n";
}
else
{
cout <<"The Number Is Odd";
}
getch();
return 0;
}