Código Java – Detectar Signo Numérico

// Codificado por Beastieux public class DSCDetectorDeSigno { void Detectar(int a) { if (a < 0) System.out.println("La variable: " + a + " es NEGATIVA"); else if (a > 0) System.out.println("La variable: " + a + " es POSITIVA"); else System.out.println("La variable: " + a + " es CERO"); } public static void main(String[] args) … Continuar leyendo Código Java – Detectar Signo Numérico