From 9cb357e37ee3c5f4e384f7aec6e7f2141ca99d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Blas=20Alarc=C3=B3n?= <47840816@terciariourquiza.edu.ar> Date: Mon, 4 May 2026 18:14:28 -0300 Subject: [PATCH] Repeti el ejercicio anterior pero usando un blucle for --- ejercicios.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ejercicios.js b/ejercicios.js index 169a096..27a7340 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -26,4 +26,8 @@ let contador = 3; while (contador < maximo) { console.log(contador); (contador = contador + 3); +} + +for (let contador = 3; contador < maximo; contador += 3) { + console.log(contador); } \ No newline at end of file