Any integer is input by the user. Write a program to find out whether it is an odd number or even number.

Any integer is input by the user. Write a program to find out whether it is an odd number or even number.



#include<iostream>
using namespace std;
int main ()
{
int x;
cout<<"Enter Your desired Number"<<endl;
cin>>x;
if (x%2 ==0)
{
cout<<"The Entered Number is Even"<<endl;
}
else
{
cout<<"The Entered Number is Odd"<<endl;
}
}


Any integer is input by the user. Write a program to find out whether it is an odd number or even number.