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