#include <iostream>
using namespace std;
int main() {
int n;
cout << "Enter an integer: ";
cin >> n;
if (n % 2 == 0)
cout << n << " is even." << endl;
else
cout << n << " is odd." << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: