Write a program that asks the user to input an integer value. Then, it should tell

whether that number is odd or even. Note/Hint: A number is considered to be an even

number if it is fully divided by 2. Otherwise, it is considered to be an odd number.

#include <iostream>

using namespace std;

int main()
{
int a;
cout<<"Please enter a number : ";
cin>>a;
if (a%2 == 0)
{
cout<<a<<" is an even number ";
}
else
{
cout<<a<<" is an odd number ";
}
return 0;
}