<?php
$numero = 0;
//Pedir Datos
echo "Digite el numero \n";
$numero = (int) trim(fgets(STDIN));
//Condiciones
if ($numero > 0) {
echo "El numero $numero es positivo \n";
}
if ($numero < 0) {
echo "El numero $numero es negativo \n";
}
if ($numero == 0) {
echo "El numero $numero es cero \n";
}
?>
To embed this project on your website, copy the following code and paste it into your website's HTML: