#include <iostream>
using namespace std;
int main() {
int numero;
cout << "Introduce un numero: ";
cin >> numero;
if (numero > 0) {
cout << "El numero es positivo." << endl;
} else if (numero < 0) {
cout << "El numero es negativo." << endl;
} else {
cout << "El numero es cero." << endl;
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: