Below I have shared the C++ program to check a number is odd or even.
For example if user enters an odd number like 5 then the output will be Odd number and if user enters even number like 8 then output will be Even number.
If you have any problem regarding below odd or even number program then you can ask it by commenting below.
C++ Program to Check Number is Odd or Even
using namespace std;
cout<<"enter the number:";
enter the number:7