This program will tell you either a number is Even or Odd in C plus plus. After input a number a message will display which shows number is even or odd

Find Number is Even or Odd

#include <iostream>
using namespace std;

int main()
{
int number; //variable to store input value

cout<<"Enter a number \n";
cin>>number;

if(number%2==0)

cout<<"Number is Even\n";
else
cout<<"Number is Odd\n";

return 0;
}