let maxNumber = +prompt("введите число"); let i = 0; do { console.log(i); i++; } while (i < maxNumber);