let out1 = document.querySelector('.out1');
const ki = () => {
let out = '';
for (let k = 0; k <= 6; k++) {
for (let i = 0; i <= 9; i++) {
if (i + 1 + k * 10 < 10) {
out += '0';
}
if (i + 1 + k * 10 <= 50) {
out += i + 1 + k * 10;
}
out += ' ';
}
out += '<br>';
}
out1.innerHTML = out;
}
ki();