From 4805cebf17ca596b1a751d66c088696f2b65a961 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Fri, 8 May 2026 16:31:49 -0300 Subject: [PATCH] ejercicio 5 --- ejercicios.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ejercicios.js b/ejercicios.js index a3f5030..a8533b0 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -25,7 +25,6 @@ function presentarse(nombre,edad){ return `Hola me llamo ${nombre} y tengo ${edad}` } console.log(presentarse("Luca",20)) - //ejercio 4 let maximo = 15; let i = 1; @@ -35,4 +34,11 @@ while (i < maximo) { console.log(i); } i++; -} \ No newline at end of file +} +//ejercicio 5 + +for (let i = 1; i < maximo; i++) { + if (i % 3 === 0) { + console.log(i); + } +}