#include <iostream>
using namespace std;
int main()
{
    int n;
    cout<<"\nOdd or Even Number Checking.";
    cout<<"\n----------------------------";
    cout<<"\n\nEnter any one Number : ";
    cin>>n;
    if(n%2==0)
    {
        cout<<"\n"<<n<<" is Even";
    }
    else
    {
        cout<<"\n"<<n<<" is Odd";
    }
    cout<<"\n\n\t |Program End|";
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: