➽ Program:-

#include<iostream>

using namespace std;

int main()

{

    int x;

    cout<<"Enter a Number: ";

    cin>>x;

 

    if(x % 2 == 0)

        cout << x << " is an even number";

    else

        cout << x << " is an odd number";

   

    return 0;

}

➽ Output:-

Enter a Number: 50
50 is an even number

Enter a Number: 99
99 is an odd number