From 12e68911b2532efec5538239e37a4fb6f19f6717 Mon Sep 17 00:00:00 2001 From: PC de clase Date: Fri, 25 Sep 2026 10:35:26 +0200 Subject: [PATCH] =?UTF-8?q?Usar=20Integer.MIN=5FVALUE=20como=20valor=20m?= =?UTF-8?q?=C3=ADnimo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Condicionales7.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Condicionales7.java b/src/Condicionales7.java index a5d196c..c352ac9 100644 --- a/src/Condicionales7.java +++ b/src/Condicionales7.java @@ -4,7 +4,7 @@ import java.util.Scanner; void main() { Scanner sc = new Scanner(System.in); - int mayor = 0; + int mayor = Integer.MIN_VALUE; System.out.print("Escribe tres numeros: "); for (int i = 0; i < 3; i++) { int n = sc.nextInt();