document.querySelector('.b-10').onclick = () => {
let out = ''
for (let i = 0; i < 1; i++) {
for (let k = 0; k <= 9; k++) {
if (k != 9) {
out += `0${k + 1}` + ' '
} else if ((k = 9)) {
out += `${k + 1}` + ' '
}
}
out += `
`
for (j = 11; j <= 20; j++) {
out += j + ' '
if (j > 19) {
break
}
}
out += `
`
for (let j = 21; j <= 30; j++) {
out += j + ' '
}
out += `
`
for (let j = 31; j <= 40; j++) {
out += j + ' '
}
out += `
`
for (let j = 41; j <= 50; j++) {
out += j + ' '
}
out += `
`
}
document.querySelector('.out-10').innerHTML = out
}