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