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