Integers which are perfectly divisible by 2 are called **even numbers.**

And those integers which are not perfectly divisible by 2 are not known as an **odd** **number.**

To check whether an integer is even or odd, the remainder is calculated when it is divided by 2 using **modulus operator %.** If remainder is zero, that integer is even if not that integer is odd.

**C++ Program to Check Number is Odd or Even if/else**

```
#include<iostream>
using namespace std;
int main()
{
int a;
cout<<"Enter the Number:";
cin>>a;
if(a%2==0)
cout<<"\nEven Number";
else
cout<<"\nOdd Number";
return 0;
}
```

**Output of Program**

Enter the Number:255

Odd Number