Taller 10 1 public class e1 { public static void main(String[] args) { System.out.println("Ingrese un numero."); double n_1 = 0; Scanner teclado = new Scanner(System.in);
n_1 = teclado.nextDouble();
if (n_1 > 0) { System.out.println("El numero es positivo.");
} else if (n_1 < 0) { System.out.println("El numero es negativo."); } }
}
2 public class e2 { /** * @param args the command line arguments */ public static void main(String[] args) { int opcion1, genero; double estatura, peso, estatura2, circuferencia, complexion, peso_ideal; double imc; Scanner teclado = new Scanner(System.in);