From ca4239297c4fbbf61de3e7981283f6a3ff8b9470 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Fri, 8 May 2026 16:29:38 -0300 Subject: [PATCH] ejercicio 4 --- ejercicios.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ejercicios.js b/ejercicios.js index 4ce9440..a3f5030 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -3,7 +3,7 @@ console.log("Archivo vinculado exitosamente"); // Resolver acá los ejercicios propuestos. -// ejecicio 1 y 2 +// ejecicio 1, 2 y 3 const nombre = "Luca" const edad = 18 if (edad >= 18) { @@ -24,4 +24,15 @@ for (const fruta of frutas) { function presentarse(nombre,edad){ return `Hola me llamo ${nombre} y tengo ${edad}` } -console.log(presentarse("Luca",20)) \ No newline at end of file +console.log(presentarse("Luca",20)) + +//ejercio 4 +let maximo = 15; +let i = 1; + +while (i < maximo) { + if (i % 3 === 0) { + console.log(i); + } + i++; +} \ No newline at end of file