forked from marquez.juan/javascript-primeros-ejercicios
feat: add while to show 3 multiples
This commit is contained in:
@@ -25,3 +25,13 @@ if (age <13 ) {
|
||||
} else {
|
||||
console.log(name +" es un adolescente");
|
||||
}
|
||||
|
||||
// Tercer ejercicio
|
||||
|
||||
let n=3
|
||||
const maximo=30
|
||||
|
||||
while (n < maximo) {
|
||||
console.log(n)
|
||||
n+=3
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user