let counter = 1;
while (counter <= 10) { console.log(counter); counter++; }
let counter = 10;
while (counter >= 0) { console.log(counter); counter--; }
let input = parseInt(prompt("Introduce un número:")); let counter = 0;
while (counter <= input) { console.log(counter); counter++; }
let input = parseInt(prompt("Introduce un número:")); let counter = 0;
while (counter <= input) { console.log(counter); counter++; }