You are on page 1of 1

class JavaAritmetica5 { public static void main (String args []) { int numero; System.out.

print ("Inserte un numero: "); numero = Leer.datoInt (); if (numero == 0) System.out.println ("El numero " + numero + " es NULO"); else { if (numero < 0) System.out.println ("El numero " + numero + " es NEGATIVO"); else System.out.println ("El numero " + numero + " es POSITIVO"); }

} }

You might also like