From db111b89e4576e4714df994f71dba3a3ea3eb15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Blas=20Alarc=C3=B3n?= <47840816@terciariourquiza.edu.ar> Date: Mon, 4 May 2026 17:57:50 -0300 Subject: [PATCH] Repeti el ejercicio anterior agregando si esta en su infancia, adolescencia, o adultez --- ejercicios.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ejercicios.js b/ejercicios.js index bfc28d5..bd011a3 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -11,4 +11,12 @@ if (edad >= 18) { console.log(`${nombre} es mayor de edad`); } else { console.log(`${nombre} es menor de edad`); +} + +if (edad < 13) { + console.log(`${nombre} esta en su infancia`) +} else if (edad >= 13 & edad <18) { + console.log(`${nombre} esta en su adolescencia`) +} else { + console.log(`${nombre} esta en su adultez`) } \ No newline at end of file