#include <iostream>
using namespace std;
int main () {
int numero;
cout << "Introduce un número" << endl;
cin >> numero;
if (numero %2 == 0) {
cout << numero << " Es par " << endl;
} else {
cout << numero << " Es impar " << endl;
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: