#include <iostream>
#include <string>
using namespace std;
int main(){
int number;
cout << "Enter the number : ";
cin >> number;
if (number%2== 0)
cout << number << " is an (even) integer " << endl;
else
cout << number << " is an (odd) integer " << endl;
}
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer